Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
nalin_769
Starting Member
16 Posts |
Posted - 2008-09-11 : 02:55:31
|
My query is SELECT SupplerName FROM Supplier it will rerunIn Fashion Int'l Co LtdIn this value contain singel inverted comma. When I go to Insert this to another table it will produce errorHow do correct it?Thank You |
|
jezemine
Master Smack Fu Yak Hacker
2886 Posts |
Posted - 2008-09-11 : 02:57:16
|
single quotes need to be escaped by doubling them. eg:insert foo select 'In Fashion Int''l Co Ltd' elsasoft.org |
 |
|
nalin_769
Starting Member
16 Posts |
Posted - 2008-09-11 : 03:23:44
|
How do I indentify singel inverted comma in sql statement value ? |
 |
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2008-09-11 : 05:51:50
|
quote: Originally posted by nalin_769 How do I indentify singel inverted comma in sql statement value ?
where col like '%''%'MadhivananFailing to plan is Planning to fail |
 |
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2008-09-11 : 08:10:54
|
quote: Originally posted by nalin_769 When I go to Insert this to another table it will produce error
How do you insert to another table ? Can you show us your code ? KH[spoiler]Time is always against us[/spoiler] |
 |
|
|
|
|