求一个简单的SQL语句
表sex 可为空的字符字段 ABC
存储成带逗号分隔的数据
'123123,234234,456456'
求这条SQL语句
另外有个小疑问
update sex set ABC=ABC+'123123'
为什么执行后ABC还是空? 因为默认值是空的问题?
update sex set ABC=isnull(ABC,'')+'123123'
SQL code:
update sex set ABC=isnull(ABC,'')+'123123'
SQL code:
update sex set ABC=isnull(ABC,'')+'123123'
SQL code:
update sex set ABC=isnull(ABC,'')+'123123'
update sex set ABC=isnull(ABC,'')+'123123'
另外有个小疑问
update sex set ABC=ABC+'123123'
为什么执行后ABC还是空? 因为默认值是空的问题?
update sex set ABC=isnull(ABC,'')+'123123'
第一个问题:
http://topic.csdn.net/u/20091226/17/684a5dc0-9e69-4ced-b9e6-006f51ee2d48.html
up
declare a varchar(10)
decalre&nbs
相关问答:
执行的顺序:
1)文件浏览框(选择文件使用)
选择好文件后
点击一个导入按钮的时候 ,把上面上传框里的csv文件以一个ID为文件名,上传到**/**文件夹下
2)读取这个文件夹下的csv的文件,转换成sql
3 ......
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jas ......
--drop table #T1
--drop table #T2
create Table #T1(ID int,
QueryID nvarchar(20),
ResultID1 nvarchar(20),
ResultID2 nvarchar(20))
create Table #T2(SortNo int,
QueryID nvarchar(20),
ResultID1 nv ......
可能因为工作的原因 接触数据库这块比较少,之前都是做程序这块,数据库这块都有专门的人来做 分工都很明细 所以对数据库这一块完全不了解。前段时间 去面试了几家公司 几乎都是在数据库这块挂掉的 连个简单的SQ ......