Live ORACLE

if you are Oracle Developer ,than this Blog most likely will make you happy.

About my Blog

This Blog particularized for Oracle Developers ... you will see interesting Codes for SQL , PL/SQL as well as new ideas for Developer Suite and Client Tools that will help you in your professional life ... and I hope I reach for your satisfaction.

About Me

I'm Hany Freedom , 25 years old , I live in EL-Minia City in Egypt , I'm Moderator at ArabOUG.org the best Arabic Forum for ORACLE on the Net. if you interested to know more about me .... just Click Here.

Delete Value from LOV after selecting it

This example illustrate how to remove a value from LOV after selecting it ( removing from the LOV not from the Database ) the point here is making restriction on values duplication in case we select the value again from the LOV that post his values on unique filed.





download the fmb file from this link :-



-------------------------
For more details , have a look for the codes :-

you must first to create this table on your Database:

CREATE GLOBAL TEMPORARY TABLE reg (
region_id NUMBER , region_name VARCHAR2(25)
) ON COMMIT DELETE ROWS;


and then do this in your Oracle Forms :






That's ALL , have a nice day.


Share/Save/Bookmark

Oracle Reports Online Help (Help Contents)

http://www.oracle.com/webapps/online-help/reports/
Share/Save/Bookmark

Oracle Forms Online Help

http://www.oracle.com/webapps/online-help/forms/
Share/Save/Bookmark

Oracle Magazine - July/August 2009

Look Inside >> 
July/August 2009

Share/Save/Bookmark

The Employee's Period by years and months

SELECT last_name,
Extract(YEAR FROM (SYSDATE
- hire_date) year to month)
||' years '
||Extract(MONTH FROM (SYSDATE
- hire_date) year to month)
||' months' "Interval"
FROM employees;




OUTPUT :-



Share/Save/Bookmark

Know the Current USER of your Session by SQL Statement

SELECT Sys_context(
'USERENV'
,'SESSION_USER')
FROM dual;


Share/Save/Bookmark

Aliasing from Passing Global Variable with NOCOPY Hint



DECLARE

TYPE definition IS RECORD(word VARCHAR2(20),

meaning VARCHAR2(200));

TYPE dictionary IS VARRAY(2000) OF DEFINITION;

lexicon DICTIONARY := Dictionary();

PROCEDURE Add_entry

(word_list IN OUT NOCOPY DICTIONARY)

IS

BEGIN

Word_list(1).word := 'aardvark';



Lexicon(1).word := 'aardwolf';

END;

BEGIN

lexicon.extend;



Add_entry(lexicon);



dbms_output.Put_line(Lexicon(1).word);

END;

/




OUTPUT :-

aardwolf

PL/SQL procedure successfully completed.

Share/Save/Bookmark

Specifying Invoker's Rights With a Procedure



CREATE OR REPLACE PROCEDURE Create_dept

(v_deptno NUMBER,

v_dname VARCHAR2,

v_mgr NUMBER,

v_loc NUMBER)

AUTHID current_user

AS

BEGIN

INSERT INTO departments

VALUES (v_deptno,

v_dname,

v_mgr,

v_loc);

END;

/


CALL create_dept(44, 'Information Technology', 200, 1700);


Share/Save/Bookmark
Newer Posts Older Posts Home Page
 
http://www.dpriver.com/images/sqlpp-banner-2.png

Thanks for reading my Blog ... you Visitor Number :-