in the update statement inside the for loop can't find the table b (alias)
the update statement should read like this
UPDATE en.agt_name a
SET a.emp_num = i.emp_num
where a.userid = i.retention_id;
Ensure retention_id column is exist on the table, as per your DESC result retention_id is does...
zumie,
UPDATE [NAMES]
SET email = 0,
datemodified = #01/20/2006#
WHERE email IN (SELECT [Found Address]
FROM [MBounce2006-01-24]
WHERE [email] = value_here)
value_here = value to filter the record in your subquery.
I'm assuming you are updating 2 columns...
Gurus,
I'm planing to take an exam for 1Z0-141 Oracle9i Forms Developer; Build Internet Application. Any reccommended sites where I can buy the practice test.
Thank you very much
Best Regards,
OG
Use SUBSTR
I tried this and it works.
Text File: (File Name LOAD_DATA.TXT)
1,99999999.99
2,99999999.99
3,99999999.99
4,99999999
5,99999999
6,99999999
7,99999999
8,99999999
9,99999999
10,99999999
CTL File:
LOAD DATA
INFILE 'LOAD_DATA.TXT'
INTO TABLE tbl_name
FIELDS TERMINATED BY ','...
Mufasa,
I cut and paste the example I have posted into the sql prompt and here is the result. FYI, DECODE command can be use also and will produce thesame reult. Hope this will help.
Regards,
OG
SQL> SELECT last_name, job_id, salary,
2 CASE job_id WHEN 'IT_PROG' THEN 1.10*salary...
I have seen your syntax, the CASE immidiately followed by WHEN. Try this
Syntax:
CASE expr WHEN comparison_expr1 THEN return_expr1
WHEN comparison_expr2 THEN return_expr2
ELSE else_expr
END
Ex: SELECT last_name, job_id, salary,
CASE job_id WHEN 'IT_PROG' THEN...
Gurus,
I'm planning the take an exam for the 9i PL/SQL this month. Any suggestion which site is the best to buy this Certification Test.
Thank you very much.
Best Regards,
OG
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.