select author from SHOPPING where BOOK_TYPE=:BOOK_TYPE;
select count(*) into :v_rows from BOOKS where BOOK_NAME=:v_BOOK_NAME and BOOK_TYPE=:BOOK_TYPE;
if v_rows = 0 then
if len(v_BOOK_NAME)>0 then
insert into BOOKS (BOOK_NAME,feeBOOK_NAME,author,BOOK_type,usercode,begintime)
values(v_BOOK_NAME,BOOK_NAME,author,BOOK_type,usercode,sysdate)
end if
end if我用DELPHI将一个图书购买的TXT中的写入表中,
要求从SHOPPING表中搜索出书的作者,插入的条件是BOOKS表中书名与书类别不相等的。对于这个插入条件我该怎么办?
用ORACLE SQL好写,可是在DELPHI中我该怎么办?请大家帮助。
select count(*) into :v_rows from BOOKS where BOOK_NAME=:v_BOOK_NAME and BOOK_TYPE=:BOOK_TYPE;
if v_rows = 0 then
if len(v_BOOK_NAME)>0 then
insert into BOOKS (BOOK_NAME,feeBOOK_NAME,author,BOOK_type,usercode,begintime)
values(v_BOOK_NAME,BOOK_NAME,author,BOOK_type,usercode,sysdate)
end if
end if我用DELPHI将一个图书购买的TXT中的写入表中,
要求从SHOPPING表中搜索出书的作者,插入的条件是BOOKS表中书名与书类别不相等的。对于这个插入条件我该怎么办?
用ORACLE SQL好写,可是在DELPHI中我该怎么办?请大家帮助。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货