How to Insert a comma "," in the SQL SERVER?
Database
3
Posts
3
Posters
0
Views
1
Watching
-
Insert into Names(Name) values('FirstName,I,LastName'); it has 3 commas, but SQL server doesn't accept commas. Does anyone have any idea?
SQL server does inserts comma in the table. Check the following query : Insert into Names(Name) values(FirstName + ',' + I + ',' + LastName'); Om Prakash
-
SQL server does inserts comma in the table. Check the following query : Insert into Names(Name) values(FirstName + ',' + I + ',' + LastName'); Om Prakash
Another cheap trick if you have characters in code is to do a cast with the ascii value: string apos = (char)39; But yeah, I can't see why you wouldn't be able to insert a comma - it must be syntactical. *->>Always working on my game, teach me *->>something new. cout << "dav1d\n";