如果是某个值的长度
select length(字段名) from 表名如果是表中这个字段的长度
select data_length from user_tab_columns where table_name='表名' and cloumn_name='字段名'其中后一条语句表名和字段名需要大写
-- sqlserver:update 表名 set A=A+','+B
-- oracle:
update 表名 set A=A||','||B
-- mysql:
select concat('123','456')
update 表名 set A=concat(A,',',B)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)