Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Single Qoutation mark Question

Status
Not open for further replies.

HulaGirl

Programmer
Apr 6, 2002
20
US
Can anyone help to explain this please.
WHY does the following statement returns one single quotation mark.

exec 'select str='''''''''

str
----
'

THANKS!
 
try this examples:

select ''
select 'a'
select '''a'''
select '''''a'''''

' -> start a string
'' -> it's a special character ( next one ) or ( empty string )
''' -> the special character is '

if u start with ''' + a + ''' ( u need to finish with ' )


''''' -> two special chars ''



Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top