今天在客户处遇到一个问题,用powershell抓取出的数据插入SQL中后每个字段都会自动带双引号“”如下: 现在想将此双引号去掉,用下面语句即可: insert into #A select SUBSTRING(column,1,len(column)-1) from list insert into #B select SUBSTRING(column,2,len(column)) from #A drop table list,#A insert into list select * fr
UPDATE Tabel1 t1 set t1.col1= ( SELECT col2 from Tabel2 t2 WHERE t1.col1=t2.col2) where exists ( SELECT col2 from Tabel2 t2 WHERE t1.col1=t2.col2) 更新Table1 和Table1 匹配的值 中 表Table1 中col1 列的值
select distinc user from instrument where created>"TO_DATE"('2015-02-05 12:00:00', 'yyyy-mm-dd hh24:mi:ss') ———————————————————————————————————————————————————————————————————— select distinc “user” from instrument where created>"TO_D