SQL:如何将值转换为小写并附加s?

时间:2010-10-22 13:18:29

标签: sql-server-2008

我想这样做,但我知道这不是正确的语法:

INSERT INTO
               TBL1 SELECT 
               Col1.ToLower + 's'
FROM
               TBL2

3 个答案:

答案 0 :(得分:21)

INSERT INTO TBL1 SELECT LOWER(Col1) + 's'
FROM TBL2

答案 1 :(得分:4)

像这样:

INSERT INTO TBL1 SELECT LOWER(Col1) + 's'
FROM TBL2 

答案 2 :(得分:3)

INSERT INTO TBL1 
SELECT Lower(Col1) + 's'
FROM TBL2