Hi
I want to have a log so in my table i got a TEXT field called LOGG. I want to update this field with new data by adding more text to field.
I am using MS SQL
'test' + 'test' doesn't work . say you cant add 2 text to each other
concat('test',' test') doesn't work . say that CONCAT isn't a built in function
this code works but is it really the best way to do? and how long can a varchar be?
I want to have a log so in my table i got a TEXT field called LOGG. I want to update this field with new data by adding more text to field.
I am using MS SQL
'test' + 'test' doesn't work . say you cant add 2 text to each other
concat('test',' test') doesn't work . say that CONCAT isn't a built in function
this code works but is it really the best way to do? and how long can a varchar be?
Code:
UPDATE GAMES SET LOGG = CAST(CAST(LOGG AS varchar(200)) + CAST('test' AS varchar(5)) AS text) WHERE (ID = 21)
Comment