Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Apostrophe in char field
Message
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
01030639
Message ID:
01030649
Views:
18
>
>To represent a single quote in the T-SQL string literal encloused into single quotes you've to double it. For examle 'O''Neil'. When you insert such value into a column, it became O'Neil (single quote). What the reason you're doing all those conversations?

I thought (obviously mistakenly) that when I insert a string and double the quotes, the double-quoted string is stored (e.g. O''Neil). So I was writing a routine to check for double quotes when retrieving every string. Now I understand that I only have to worry about it when inserting and not when retrieving.

Thank you for the explanation.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform