Validating null value in pl sql Role playing sex chat prank

'! ' THEN IF v_first THEN SELECT program INTO v_module FROM v$session WHERE sid = (SELECT sid FROM v$mystat WHERE rownum = 1 ); -- -- Insert the log record INSERT INTO auditlog (event_id, table_name, operation, record_id, module_name) VALUES (spsseq. DENIED_GROUP); END audit; EXCEPTION WHEN OTHERS THEN DECLARE err_number NUMBER := SQLCODE; err_message VARCHAR2(2000) := SUBSTR(SQLERRM, 1, 2000); BEGIN INSERT INTO activitylog (activity_id, message_type, program, error_number, description) VALUES(-20000, 'E', 'authorization_codes_audit', err_number, err_message); END; END; December 04, 2003 - am UTC I think its worth the tiny bit of typing it takes. (Obviously anything can have a bug - but you know what I get at.) There can be many reasons for not documenting something.NEXTVAL, v_table, v_operation, v_recid, v_module) RETURNING event_id INTO v_event_id; -- v_first := FALSE; END IF; INSERT INTO audit_detail(event_id, column_name, before_data, after_data) VALUES (v_event_id, pi_column, pi_before, pi_after); -- END IF; END audit_detail; -- BEGIN IF INSERTING THEN v_operation := 'INSERT'; v_recid := :new. ABBREVIATION); -- audit_detail('DENIED_GROUP', :old. declare nullstr1 varchar2(20); nullstr2 varchar2(20); notnullstr1 varchar2(20) := 'xxxxxxxxxxx'; notnullstr2 varchar2(20) := 'xxxxxxxxxxx'; notnullstr3 varchar2(20) := 'xxxxxxxxxxxy'; notnullnum1 number := 1; notnullnum2 number := 1; notnullnum3 number := 2; begin for i in 1 .. Once something is documented and you know that Oracle developers are now using it - this means that Oracle must now maintain backward compatability forever (or risk backlash) on this db_sid ,s.serial# db_serial ,,to_char(s.logon_time,'DD/MM/YYYY HH24: MI: SS') db_logon_time ,nvl(s.username, 'SYS') db_user ,s.osuser os_user ,s.machine os_machine ,nvl(decode(instr(s.terminal,chr(0)),0,s.terminal,substr(s.terminal,1,instr(s.terminal,chr(0))-1)),'none') os_terminal ,s.program os_program from v$session s ,v$process p where 1=1 and s.paddr = and s.username like upper('SYSTEM') The line: nvl(decode(instr(s.terminal,chr(0)),0,s.terminal,substr(s.terminal,1,instr(s.terminal,chr(0))-1)),'none') os_terminal Looks for CHR(0).

SQL courses are available immediately for IT professionals and can be taken without disruption of your workplace schedule or processes.' will *never* appear (which almost always turns out to be a false assumption at some point in time) it is OK. They "own" it and can it do whatever they need it to do.I have no problems with where (a = b or (a is null and b is null)) though (it really isn't that much more typing) one advantage that nvl() may have is you can index it and search using the index. A patch set could radically change the way it functions - in a way that doesn't affect them, but does affect you. Sean, The part I would disagree with you and agree with Tom - would be on your assumption that this is not documented due to "...doubts whatsoever about the safety/accuracy/dependability..." If this function was not working well for them (Oracle internal developers) - I fully trust that the Oracle QA team would not let them use it.If a field in a table is optional, it is possible to insert a new record or update a record without adding a value to this field. Note: It is very important to understand that a NULL value is different from a zero value or a field that contains spaces.A field with a NULL value is one that has been left blank during record creation!