Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

%s symbol

955939Aug 15 2012 — edited Aug 15 2012
I am beginner and came across this query ,i know percentage sign is used to specify the type like %type usage ..
but here %s what it does
what is the use of %mfr
is there something wrong in syntax ,note space between double quotes i have added for better readability, its not present in original query .
is def a keyword and it also returns a value but its not like a normal function definition like create function functionname ...
so what is def for ?

def Manufacture_name(mfrs):
getName=" " "select mfr
from cars
where
mfr = '%s' " " "%mfrs

Name=executeSql(getName)
return Name[0][0]
This post has been answered by Brian Bontrager on Aug 15 2012
Jump to Answer

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 12 2012
Added on Aug 15 2012
5 comments
1,384 views