oracleÖÐ×ÝÏòתºáÏò
ÓÐÒ»±íÈçÏ£º
ID ÐÕÃû ¿ÆÄ¿ ³É¼¨
1 ÕÅÈý ÓïÎÄ 80
2 ÕÅÈý Êýѧ 90
3 ÕÅÈý Ó¢Óï 70
4 ÀîËÄ ÓïÎÄ 90
5 ÀîËÄ Êýѧ 80
6 ÀîËÄ Ó¢Óï 99
7 ÍõÎå ÓïÎÄ 85
8 ÍõÎå Êýѧ 96
9 ÍõÎå Ó¢Óï 88
ÔõÑùͨ¹ýSQLÓï¾äÉú³ÉÈçÏÂ:
ID ÐÕÃû ÓïÎÄ Êýѧ Ó¢Óï
1 ÕÅÈý 80 90 70
2 ÀîËÄ 90
Ïà¹ØÎÊ´ð£º
--oracle ´¥·¢Æ÷£¬×ª sqlserver ÎÊÌâ
CREATE OR REPLACE TRIGGER TG_BU_TSTK_IMPORTITEM
BEFORE UPDATE ON TSTK_IMPORTITEM
FOR EACH ROW
DECLARE
VAR_LIBGOODCOUNT NUMERIC(12,2);
BEGIN
......
oracleÓÐʲôÈí¼þ¿ÉÒÔ¼à¿ØoracleÊý¾Ý¿âÖ´ÐУ¬¿ÉÒԲ鿴ËÔÚÔËÐнű¾£¬²é¿´ÐÔÄÜÖ®ÀàµÄÈí¼þ£¬ÇëÓÐÓùýµÄ´ó¼Ò½éÉÜÏ£¬Ð»Ð»£¬³õѧÕߺܶ಻¶®Çë¶àÖ¸½Ì£¬Ð»Ð»£¡
²é¿´ÐÔÄÜÖ®ÀàµÄÈí¼þ
Spotlight:ʵʱµÄÒÔͼÐεÄÐÎ ......
ÎÒÓõÄÊÇPreparedStatementÀ´·¢ËÍÌá½»£¬²¢ÇÒÊý¾ÝÁ¿·Ç³£ÅÓ´ó¡£
Ò»´ÎÐèÒªÖ´ÐÐ8900¶àÌõ¸üÐÂÓï¾ä£¬Ò²¾ÍÊÇUpdateÓï¾ä¡£
ÎÒÊÔ¹ý·Ö¿ª£¬Ò»²¿·ÖÒ»²¿·ÖÀ´Ö´ÐÐÌá½»£¬µ«»¹ÊÇÒ»ÑùµÄËÙ¶ÈÂý£¬¶øÇÒÔ½Ö´ÐÐÔ½Âý¡£ÊµÔÚÊÇûÓÐʲô ......
create or replace function GetWorkBeginTime()
return date is
myDate date;
begin
myDate := trunc(sysdate-1)+8/24;
return myDate;
end;
......
ÔÚ´æÈ¡Ð¡Êý£¬ÀýÈç0.5µÄʱºò£¬ÎªÊ²Ã´´æÈ¡µ½Êý¾Ý¿âÖбä³É .5 µÄÐÎʽ£¿
½â¾ö·½°¸ÒѾÓÐÁË£¬ÎÒÖ÷Òª¹ØÐĵÄÊÇoracleΪʲô»áÕâô´æ´¢£¿
ÄãËù¿´µ½µÄÊÇ´æ´¢µÄÊý¾ÝµÄÏÔʾ·½Ê½£¬Ö»ÊÇÒ»¸ö±íÏ󣬲¢²»Ó°ÏìÊý¾ÝÔÚÊ ......