I want to update 1 column in SQL Table. Example: Current value in column is like this
2013/09/pizzalover.jpg
2013/10/pasta.jpg
Now i wa
You mean like this?:
SELECT 'www.mypizza.com/' + ColumnName AS ColumnName FROM TableName
Depending on the rest of your application environment, there is likely a much better way to accomplish this. But in terms of just using SQL to add static text to a column in a SELECT statement, you can just concatenate the text directly in the statement.
Or, if you wanted to UPDATE the column values, something like this:
UPDATE TableName SET ColumnName = 'www.mypizza.com/' + ColumnName
Same principle, just using an UPDATE
instead of a SELECT
, which will modify the underlying data instead of just modifying the view of the data.