Reputation: 8256
I need to store (hardcoded) a carriage return in a database field. I just find methods to do it with programming languages (for instance char(13) in TSQL) but I just want to write it BY MYSELF in a field, as it happens in HTML with ", &nsbp, etc...
Thanks
Francesco
Upvotes: 1
Views: 490
Reputation: 3625
SET @SomeVar="Hello World".All what do you need to write CR by hand it is just to press Enter inside of string.
Upvotes: 1
Reputation: 432271
Raw SQL:
INSERT MyTable (col1, col2)
VALUES (1, '
')
There is no way in SSMS, Edit table mode.
Upvotes: 1