摘要:
数据库 db1 有表 tb1 a b c; 数据库 db2 有表 tb2 a c b 问怎样把tb1 的数据导入 tb2中(列值要对应)?
......
摘要:
我是这样做的: 在form1的keypress事件中: void __fastcall tform1::formkeypress(tobject *sender, char &key) { if(key==vk_f1) showmessage("aa"); } 可运行时按f1却没出现消息框,我试了key==112和key==0x70都不行,f2-f12也都不行......
ORACLE中关于BLOB字段的使用问题
我想把图片传到ORACLE中PIC(BLOB型)字段,使用的是LyfUpload.dll上传,
但是我怎么写SQL语句呢?
sqlstr="SELECT EMP_ID,PIC FROM EMPLOYEES"
rs.Open sqlstr,conn,1,3
RS.ADDNEW
......
rs("PIC").AppendChunk obj.DBContent
.......
这样就会出错,在打开RS的时候。
我该怎么写这个SQL语句,或者有什么其他的写入数据库的方法么?
NO.1 作者: spacener
用Insert into试试看
摘要:
在一个存储过程中这样写: if exists(temptbl) insert into #temptbl select * from 表1 where 字段1=a else select * into #temptbl from 表1 where 字段1=b 为什么提示说 temptbl 已经存在 把temptbl 全部替换为 mytemptbl 也是一样提示 mytemptbl 已经存在......