Home » SQL & PL/SQL » SQL & PL/SQL » checking value of %rowtype (Oracle 9)
checking value of %rowtype [message #366203] |
Fri, 12 December 2008 02:20  |
shaksing
Messages: 115 Registered: November 2008
|
Senior Member |
|
|
In declare section i have V_RECORD NPPI_PURGADO_S%ROWTYPE;
And after that in code i am doing this.
SELECT * INTO V_RECORD FROM NPPI_PURGADO_S WHERE DETALLE LIKE '%RECONSTRUIDAS LAS TABLAS%' AND FECHA_INICIO IN (SELECT MAX(FECHA_INICIO) FROM NPPI_PURGADO_S);
after that i want to check v_record is null or not
IF V_RECORD%NOTFOUND THEN.. Is that possible.
Please suggest me .
|
|
|
Re: checking value of %rowtype [message #366208 is a reply to message #366203] |
Fri, 12 December 2008 02:35   |
 |
Michel Cadot
Messages: 68758 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
v_record is NEVER null.
Explain what you really want, and read OraFAQ Forum Guide, especially "How to format your post?" section.
Make sure that lines of code do not exceed 80 characters when you format.
Indent the code (See SQL Formatter) and align the columns in result.
Use the "Preview Message" button to verify.
Also always post your Oracle version (4 decimals).
Regards
Michel
[Updated on: Fri, 12 December 2008 02:36] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Sun Jun 08 19:49:51 CDT 2025
|