sql INSERT ÎÊÌâ - Oracle / »ù´¡ºÍ¹ÜÀí
pCmd->CommandText="insert into userftprequest(filename,telnoid,telno,indatetime,productid,dealdatetime,activedatetime,canceldatetime,doflag) values( '"+file_name+"','"+telnoid+"','"+telno+"',todate('"+indatetime+"','YYYY-MM-DD HH24:MI:SS'),'"+productid+"',todate('"+dealdatetime+"','YYYY-MM-DD HH24:MI:SS'),todate('"+activedatetime+"','YYYY-MM-DD HH24:MI:SS'), todate('"+canceldatetime+"','YYYY-MM-DD HH24:MI:SS'),'"+doflag+"')";
ÕâÀﱨ´í
error C2678: ¶þ½øÖÆ¡°+¡± : ûÓÐÕÒµ½½ÓÊÜ¡°std::basic_string<_Elem,_Traits,_Ax>¡±ÀàÐ͵Ä×ó²Ù×÷ÊýµÄÔËËã·û(»òûÓпɽÓÊܵÄת»»
-- ºÜÂÒ£¬Ã»·¨¿´!
´òÓ¡ÏÂÕâ¸ö×Ö·û´®pCmd->CommandText £¬ÔÚPLSQLÖпÉÒÔÖ´ÐÐÂð£¿
±¨´í ²»ÄÜÖ´ÐдòÓ¡
insert into userftprequest(filename,telnoid,telno,indatetime,productid,dealdatetime,activedatetime,canceldatetime,doflag£©
values( '"+file_name+"','"+telnoid+"','"+telno+"',
todate('"+indatetime+"','YYYY-MM-DD HH24:MI:SS'),
'"+productid+"',todate('"+dealdatetime+"','YYYY-MM-DD HH24:MI:SS'),
todate('"+activedatetime+"','YYYY-MM-DD HH24:MI:SS'),
todate('"+canceldatetime+"','YYYY-MM-DD HH24:MI:SS'),'"+doflag+"')";
Õâ²»»áºÜÂÒ°É
°ïæ¿´ÏÂÁË Ð»Ð»
todate('"+canceldatetime+"','YYYY-MM-DD HH24:MI:SS'),'"
Ïà¹ØÎÊ´ð£º
Ö´ÐеÄ˳Ðò£º
1£©Îļþä¯ÀÀ¿ò£¨Ñ¡ÔñÎļþʹÓã©
Ñ¡ÔñºÃÎļþºó
µã»÷Ò»¸öµ¼Èë°´Å¥µÄʱºò £¬°ÑÉÏÃæÉÏ´«¿òÀïµÄcsvÎļþÒÔÒ»¸öIDΪÎļþÃû£¬ÉÏ´«µ½**/**Îļþ¼ÐÏÂ
2£©¶ÁÈ¡Õâ¸öÎļþ¼ÐϵÄcsvµÄÎļþ£¬×ª»»³Ésql
3 ......
ÎÒÊÇÓÃÔ¶³Ì×ÀÃæÁ¬²Ù×÷·þÎñÆ÷ÉϵÄÊý¾Ý¿â¡£
ÔÚ´´½¨Ò»¸öÓû§Ö®ºó£¬ÔÙÓÃPLSQLµÇ¼£¬ÔòPLSQLËÀµôÁË¡£
ÎҹصôPLSQLÖ®ºó£¬ÓÃÆäËûÓû§Ò²²»ÄܵǼ¡£
ÎÒ°ÑoracleµÄ·þÎñÍ£Ö¹£¬½á¹û¾ÍÊÇoracleµÄ·þÎñ״̬¾ÍÍ£ÁôÔÚ¡°Í ......
ÎÒÔÚ¿ª·¢µÄÕâ¸öÓ¦Óò¢·¢ÐԱȽϸߣ¬oracle¸üÐÂÊý¾ÝʱºòÈçºÎ´¦Àí²¢·¢´¦ÀíÄØ£¿¸÷λ´óÏÀ·¢±íºÃµÄ¹Ûµã°¡£¬ÔÚÏߵȴý£¡
oracleÊý¾Ý¸üÐÂʱ£¬»á×Ô¶¯Ä¬ÈÏÐÐËø¶¨£¬Â¥Ö÷²»Òª²ÙÐÄ£¬Oracle¶Ô²¢Ðд¦ÀíÒѾºÜ³ÉÊìÁË
ÒýÓÃ
oracle ......
ÎҵĴ¦ÀíÊÇÕâÑùµÄ£º
ÎÒÓÐÒ»¸öºÜ´óµÄÊý¾Ý¼¯ºÏ£¬´¦ÓÚÐÔÄÜ·½ÃæµÄ¿¼ÂÇÐèҪʹÓÃÁÙʱ±í¹ý¶É£¬²¢ÇÒʹÓ÷ÖÒ³µÄ·½Ê½ÏòÁÙʱ±íÖвåÈëÊý¾Ý£¬Êý¾ÝʹÓÃÍê±Ïºó£¬É¾³ýÁÙʱ±íµÄÊý¾Ý¡£
³öÏÖµÄÏÖÏ󣺵±OracleÖØÐÂÆô¶¯ºó£¬µÚÒ»Ò³²åÈëµÄ ......
ÐèÇóÈçÏ£º
ѧԺ academy£¨aid,aname£©
°à¼¶ class£¨cid,cname,aid£©
ѧÉú stu(sid,sname,aid,cid)
סËÞÇø region(rid,rname)
ËÞÉáÂ¥ build(bid,rid,bnote) bnoteÊÇ¡®ÄС¯/¡®Å®¡¯
ËÞÉá dorm(did,rid,bid£¬bedn ......