µ±oracle³öÏÖ ¸ñʽÓë×Ö·û´®¸ñʽ²»Æ¥Åä½â¾ö°ì·¨
select v.spid spid,v.appid appid,v.version version,v.newversion newversion,v.status status,v.createtime createtime from adc_spversionchangeapply v inner join adc_application a on a.id=v.appid
where a.create_by = 'a' and v.appid = '12000000005' and (v.createtime >= '1987-05-06') and (v.createtime <= '2009-04-29')
¼ÓÈëv.createtimeÔÚÊý¾Ý¿âÖÐÊÔdateÀàÐÍ ÄÇô»áÅܳöÒì³£
ORA-01861: ÎÄ×ÖÓë¸ñʽ×Ö·û´®²»Æ¥Åä
ʵ¼ÊÉÏÊÇÒòΪ '1987-05-06'ÊÇ×Ö·û´®ÀàÐ͵¼ÖµÄdateÀàÐÍÓë×Ö·û´®ÀàÐÍ ¼þ¿çÀàÐÍ±È½Ï ËùÒÔÊÇÓÐÎÊÌâµÄ
½«'1987-05-06' д³Éto_date('1987-09-18','yyyy-mm-dd')
¾ÍÐÐÁË
´úÂëÈçÏÂ
select v.spid spid,v.appid appid,v.version version,v.newversion newversion,v.status status,v.createtime createtime from adc_spversionchangeapply v inner join adc_application a on a.id=v.appid
where a.create_by = 'a' and v.appid = '12000000005' and (v.createtime >= to_date('1987-05-12','yyyy-mm-dd')) and (v.createtime <= to_date( '2009-04-29','yyyy-mm-dd')
Ïà¹ØÎĵµ£º
ÕÛÌÚÁËÁ½¸öÍíÉϵÄlinuxºÍoralce£¬×ÜËã³öÀ´µã¶«Î÷ÁË¡£Oralce°²×°ÒªÑ¡ÓÃÊÊÓõİ汾£¬²»È»°²×°²»»á³É¹¦£¬×îºóÎҵľö¶¨ÊÇlinuxÑ¡ÓÃcentos 5.0£¬oracleÑ¡ÓÃ10¡£
Ò»¡¢ ×¼±¸¹¤×÷£º
1. ʹÓÃrootÓû§µÇ¼
ÎÒʹÓõÄÊÇÔÚ±¾»ú×°£¬ËùÒÔÖ±½Ó´ò¿ªÖÕ¶Ë¾Í ......
OracleÊý¾ÝÀàÐͼò½é
¡¡¡¡Ò»¡¢¸ÅÊö
¡¡¡¡ÔÚORACLE8Öж¨ÒåÁË£º±êÁ¿£¨SCALAR£©¡¢¸´ºÏ£¨COMPOSITE£©¡¢ÒýÓã¨REFERENCE£©ºÍLOBËÄÖÖÊý¾ÝÀàÐÍ£¬ÏÂÃæÏêϸ½éÉÜËüÃǵÄÌØÐÔ¡£
¡¡¡¡¶þ¡¢±êÁ¿£¨SCALAR£©
¡¡¡¡ºÏ·¨µÄ±êÁ¿ÀàÐÍÓëÊý¾Ý¿âµÄÁÐËùʹÓõÄÀàÐÍÏàͬ£¬´ËÍâËü»¹ÓÐһЩÀ©Õ¹¡£ËüÓÖ·ÖΪÆ߸ö×飺Êý×Ö¡¢×Ö·û¡¢ÐС¢ÈÕÆÚ¡¢Ðбêʶ¡¢²¼¶ûºÍ¿É ......
·ÖÎöº¯Êý£¬×îÔçÊÇ´ÓORACLE8.1.6¿ªÊ¼³öÏֵģ¬ËüµÄÉè¼ÆÄ¿µÄÊÇΪÁ˽â¾öÖîÈç“ÀۼƼÆË㔣¬“ÕÒ³ö·Ö×éÄڰٷֱȔ£¬“Ç°-NÌõ²éѯ”£¬“Òƶ¯Æ½¾ùÊý¼ÆËã”"µÈÎÊÌâ¡£Æäʵ´ó²¿·ÖµÄÎÊÌⶼ¿ÉÒÔÓÃPL/SQL½â¾ö£¬µ«ÊÇËüµÄÐÔÄܲ¢²»ÄÜ´ïµ½ÄãËùÆÚÍûµÄЧ¹û¡£·ÖÎöº¯ÊýÊÇSQLÑÔÓïµÄÒ»ÖÖÀ©³ä£¬Ëü²¢²»Êǽö½ ......
OracleÖÐÐÞ¸ÄSequence·½·¨£º¾ÍÊǸıäËüµÄincrement µÝÔö´óС£¬Ëü¿ÉÒÔΪÕýÒ²¿ÉÒÔΪ¸º¡£ÈçÏ£º
SQL> select seq.nextval from dual;
NEXTVAL
----------
21
SQL> alter sequence seq increment by 79;
ÐòÁÐÒѸü¸Ä¡£
SQL> select seq.nextval from d ......