Microsoft
Software
Hardware
Network
Question : Deleting records from an Oracle database using SQL based on timestamps using SAS SQL passthrough
Hi thre,
Trying to delete records from an Oracle database using SQL based on timestamps
Below is my code. It doesn't work - cos I think I specified the timestamp in the wrong manner or simply bad syntax. Can someone help. Thanks
proc sql stimer;
connect to oracle as ora ( user = "&USER" password = "&Pw" path = 'caoperpr' );
%put &sqlxrc;
%put &sqlxmsg;
execute
(
UPDATE OPR_EDW_CDL.CMPGN_CUST_MFE
V
SET TXN_DTE = values(timestamp'26JUL2010
:10:00:00'
)
WHERE cmpgn_id = %str(%')&cd%str(%')
and TXN_DTE= '23JUL2010:00:00:00'dt
)ora ;
execute
(
commit
)ora ;
%put &sqlxmsg;
disconnect from ora;
%put &sqlxmsg;
quit;
Answer : Deleting records from an Oracle database using SQL based on timestamps using SAS SQL passthrough
check is a reserved word, either
`check` int(11) NOT NULL default '0',
or change the name
Random Solutions
flashing the bios on an Acer Aspire 3610 laptop
is it possible to link to a page of a different project in asp.net?
SQL needs to gets info from Inner Join on two Fields
Best way to make users stay within ranges and warn users of conflicts
Need to use Log Parser to extract IP and username of all who have accessed OWA in the last month.
equation for multi level slope for LUT table in range from 0 to 255
Iterating query results using list() not knowing columns or variables?
Exchange config for Outlook Anywhere
Blu-Ray movies do not display full-screen
Images in select drop-down list