2012-04-19 72 views

回答

1

這確實你需要:

update posts 
    set content=CONCAT('here is content ', CAST(id as CHARACTER)) 

這是一個link來測試SQLFiddle。

+1

你可以嘗試一下http://sqlfiddle.com – 2012-04-19 00:59:14

+1

@MichaelBuen謝謝!我現在知道[它有效](http://sqlfiddle.com/#!2/e2c13/4)!偉大的工具! – dasblinkenlight 2012-04-19 01:02:26

0

我想:

update comment set comment=concat('here is a comment: ', id,' these are other things');