Tanya: "@"-nya SQL in Oracle

0 views
Skip to first unread message

Aryanto, Radite [UTC]

unread,
Dec 7, 2009, 9:47:48 PM12/7/09
to inform...@googlegroups.com

Temans,

 

Tanya nih…

Kalau di dalam Procedure SQL itu ada tanda @ (misal: @userid) sebagai ganti Variable…

Nah kalau di Oracle ada yg tahu gak..? apa sama jg..?

 

Thx b4,

 

Regards,

R a d i t e   A r y a n t o

 

Kazao™

unread,
Dec 7, 2009, 9:56:49 PM12/7/09
to inform...@googlegroups.com
kalau di oracle sepertinya harus di declare

misal:
declare userId VARCHAR(50); // @userId

terus kalau mau set nilai
SET userId = 1; // @userId = 1;

sepertinya seperti itu, gak ada oracle jadi gak bisa ngetest...
--
~~~ Sent form my notebook ~~~
http://blog.kazao.net

Aryanto, Radite [UTC]

unread,
Dec 7, 2009, 10:10:36 PM12/7/09
to inform...@googlegroups.com

Contohnya di sQL:

Select userprofile from table_profile

Where userid = @userid

 

Nah.. yg @userid gini kalo di Oracle yg bikin bingung.. :D

Kebetulan aku jg lg coba DataAccessLayer di visual studio..

Klo bikin function dgn query diatas pake SQL jalan…

Tapi kalo oracle.. malah error… :D

Ribet jg ternyata pake oracle.. :D

 

 

Regards,

R a d i t e   A r y a n t o

 

Teguh Susanto

unread,
Dec 8, 2009, 12:52:41 AM12/8/09
to inform...@googlegroups.com
ikut nimbrung ya gan...
symbol @ pada digunakan utk deklarasi variable didalam triger
misal DECLARE @userid varchar2(10);

2009/12/8 Aryanto, Radite [UTC] <Radite....@chevron.com>



--
---------------------------------------------------------
Teguh Susanto
IT/SIM Staff
Jogja International Hospital
Jl.Ring Road Utara No. 160
Condong Catur,Depok,Sleman,Yogyakarta 55283
telp : 0274-4462879 ext 609
website : www.rs-jih.com
email : teg...@rs-jih.com
blog : medicalenvironment.blogspot.com
Reply all
Reply to author
Forward
0 new messages