Date format in JDBC
hi all,
when am retreiving dates from a table by JDBC am getting the date format as
"1999-01-01" how can i change the format of date as 01-01-1999 and to different foramts.
am using variable of type sql.Date type to get date from Database.
regards,
Raghav
There is also a conversion function in SQL. Check your SQL Reference for doing this.
--olaf
Similar Messages
-
Hi, can anyone tell be what format a date should be in when querying a database. I have some old code that was transfered to a new app server which follows Java standards very strictly. Now it gives me problems when comparing dates, for example a query that finds records for a date BETWEEN two other dates. The old format was dd-mon-yyyy, but this doesn't work anymore and neither does dd-mon-yy OR yyyy-mon-dd. When I do the query in the text editor(SQL Plus) it works, but not within the Java code.
Any ideas?
ThanksOf course you're right, thor_b. My point is that Oracle's "to_date" can convert a string to a date, but that's not how Access or SQL Server or any other RDBMS do it. They're all different. If you hardwire "to_date" into your SQL you'll have to rewrite the whole thing if you move from Oracle to SQL Server.
I like the PreparedStatement because it takes care of all that for me.
Performance penalty? Over Statement? I've read some stuff about that, but I find it hard to believe.
Whenever you send SQL to a relational database it has to parse the SQL, determine if the tables and columns exist and have the right types, optimize the query, and then execute it. You have to do that whether you're using Statement or PreparedStatement. If PreparedStatement allows the RDBMS to do all that work once and then store it, I can't see how you'll do worse. - MOD -
Hello,
we had created a scenario file to jdbc. while sending file to Oracle DB, it shows error as "ORA-01861: literal does not match format string". we checked the literals and white spaces. still we have same problem. so i have doubt on DATE format. we are sending date from PI system as yyyyMMdd which is not supported by Oracle i think. So please provide the DATE format accepted by Oracle and how to pass from SAP PI mapping. it will be appreciable if provide Steps to do in mapping or UDF code sample.
Also in response status we get the error "ORA-00917: missing comma ". So plz let me know how to solve this issue.
Thanks in Advance.Hi
The date format for oracle is dd-MON-yyyy.
Please refer to blog below
/people/santhosh.kumarv/blog/2008/10/10/life-is-all-about-days-date-in-xi
/people/sarvesh.singh3/blog/2009/02/13/yes-it-is-possible-with-datetrans-function
Regards,
Deepak.
Edited by: Deepak Shah on May 21, 2010 3:35 PM -
Date Formatting error in JDBC adapter
Hi,
While inserting date using a Receiver JDBC Adapter i am getting a "Month not valid" error can anyone please tell me how do i pass date in the required format. Database is Oracle.Hi Vinay,
Oracle's default format for DATE is "DD-MON-YY"
With the functions to_char and to_date, a date format can be used. Example:
select to_char(sysdate,'DD/MM/YYYY HH24:MI:SS') from dual;
will return something like: 24/03/2006 14:36:43
Regards,
Prateek -
Hi there !
Please, can anyone help me find out what is going on with date format in my SQL Statements ?
While in development, the date format in SQL statements were:
SELECT DATA_FIELD FROM TABLE WHERE DATE_COL = '10-DEC-2004'
And works fine.
After deploy to production server, we get ORACLE error: not a valid month
So we change the format to
SELECT DATA_FIELD FROM TABLE WHERE DATE_COL = '10/12/2004'
And it gets to works again.
Yesterday, the net administrator updated the JAVAC / JSDK run-time with Java update tool, and AGAIN we get ORACLE error: not a valid month
So we change the format AGAIN to
SELECT DATA_FIELD FROM TABLE WHERE DATE_COL = '10-DEZ-2004'
And it gets to works again.
What is going on ?
JAVAC running on Windows2003.
The application access the ORACLE DB directly through JDBC.
There is no APPLICATION SERVER, like TOMCAT.
The regedit (windows registry) ALWAYS was and are now :
NLS_DATE_FORMAT = DD-MON-YYYY
NLS_LANG = AMERICAN_AMERICA.WE8ISO8859P1
Versions:
DB Oracle 9.2.0.5.0
JavaC 1.4.2.05
Thanks.
JulianoSomewhere, I'm willing to wager your NLS_DATE_FORMAT was/ is being changed. This is a client-side setting. Are you sure that the setting is the same on every client machine.
This is one of the reasons that it is considered bad form to rely on implicit conversion. If you wrap your string literal in a TO_DATE, use the JDBC escape sequence {d }, or use a Date bind variable, you don't have this problem. The bind variable approach will also play much more nicely with your database's shared pool.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
Date Format in VC from Oracle Database
Hi all,
I created one BI JDBC system to access table from Oracle. I have written one query using SQL Editor. That Query displays the Valid From date and Valid To date. If I test the data service it displays the date correctly what we have given . But whenever I run that model, it displays Jan 01,2000 instead of all date. What is the problem?
The Date format in oracle is YYYY-MM-DD HH:MM:SS.0 .Whether VC is support this format or not? Why it is taking Jan 01,2000?
Help me in this regard. How can I resolve my problem?
Thanks& Regards,
Hemalatha Jhi
i think you have to change your web service interface, from Date to Time
so you can use time format function
holp it make help
good day -
Hi,
I use database MSSQL2000 and UIX application.
File dateformat_ru.properties :
dateclass=java.sql.Date
datetimeclass=java.sql.Timestamp
datepattern=dd-MM-yyyy or datepattern=dd.MM.yyyy
datetimepattern=dd-MM-yyyy HH:mm:ss.SSS
I read record from database = OK. (date = valid)
After change field date I have error :
Timestamp format must be yyyy-mm-dd hh:mm:ss.fffffffff
Help me, please.
Sorry ... :(
Nikolay
New Urengoj, RussiaHi, Peter !
Unfortunately, I hurted some days and could not worked.
I shall try to state a problem more full.
1. Version : JDeveloper 10.1.2.0.0 (Build 1811), JHeadStart 10.1.2.0 (Build 19)
2. I could not create log file for find error and find message "Timestamp format must be " This message is not present in files of the project. In the previous example, I have incorrectly specified a format of date and, therefore, I have received a error "Timestamp format...", sorry :(
3. I use database MsSql 2000 and date format in this database is "dmy" (day mounth year) as default for russian users. For an example, I used the scheme HR (human resources) and I have created all objects in database MsSql.
4. Further, I created Business Components from tables. In Employees and EmployeesViews, for field HireDate :
Entity Attribute -> Type = Date
Attribute Properties -> Value = dateField
Control Hints -> Control Type = Date
Variant 1. In file dateformat_ru.properties
dateclass=java.sql.Date
datepattern=dd.MM.yyyy
After run application I see valid current value HireDate 17.12.1984. (Steven King)
I changed to 18.12.1984 and ... error :
java.lang.IllegalArgumentException at java.sql.Date.valueOf(Date.java:103)
JBO-25009: Cannot create an object of type:java.sql.Date with value:18.12.1984
Variant 2. In file dateformat_ru.properties
dateclass=java.sql.Date
datepattern=dd-MM-yyyy
Redeploy ... I see valid current value HireDate 17-12-1984
Change to 18-12-1984, save.
And after save - > new errors :
I see HireDate 06-05-0024 and
[Microsoft][SQLServer 2000 Driver for JDBC]The year, 24, is outside the range allowed by the SQL Server.
I correctly understand, that it is impossible to use dateclass=java.sql.Date
for date format "dd-MM-yyyy" or "dd.MM.yyyy" ?
Class java.sql.Date does not support this format ?
Prompt, please, a way of the decision of this problem.
Thanks.
I wish good luck.
Nikolay -
How to involve time in a date column in JDBC OCI 8.0.5.2.
Hi,
I need to involve time in a date column in JDBC OCI 8.0.5.2.
The default date format is like "09-Sep-1999". I could use it
but just need time involved too, like "09-Sep-1999 10:11:12".
I tried to use JDBC's Timestamp whose format is like
1999-9-9 12:00:00.000, just same as the dates selected from my
table,
but got an error message "literal doesn't match format string".
The JDBC document said Oracle's date could be JDBC date,
timestamp and char.
Thanks a lot!
-Ninon
null: The only oracle driver that vcan run with JDK 1.2.x is in the
OTN
: download area and is named "816SDK for JDK 1.2"
: it will work with the JDK 1.2.X using the JDBC 1.22 spec from
JDK
: 1.1.X.
: IT DOES NOT PROVIDE THE FULL JDBC 2.0 FEATURES/ FUNCTIONALITY
: THAT ARE INCLUDED IN THE JDK 1.2.X CLASSES.
Does anyone know which versions of Oracle this driver will work
with? I'm trying to use JDK 1.2 and Oracle 8.04 with the above
mentioned driver, but it's misbehaving on prepared statements:
I'm getting a 'ORA-8001 not all variables bound' error even
though I'm correctly specifying binary data (using
PreparedStatement.setBytes(..)) for a LONG RAW column...
Please don't tell me I have to upgrade my Oracle installation in
order to use JDBC with JDK 1.2.x
Feedback is greatly appreciated!
thanks!
// Tor Kleiberg
null -
Date Format in servlet when i insert into database
I am inserting data into database through servlet, but i am getting NumberFormat Exception, and my datatype in database is DATE ,when i typecast my day and year because they r in int and changing into String,still i am getting the same error .So please can any one tell me where to cahnge the format of date and how to type cast to my Date format of database.
Thanks,
lalithaMy code is:import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
import java.text.*;
import java.sql.Date;
import java.util.*;
public class RegisterServlet extends HttpServlet
Connection con;
PreparedStatement ps;
public void init(ServletConfig sc) throws ServletException
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:plk","scott","tiger");
System.out.println("connection created");
catch(Exception e)
System.out.println(e);
public void doPost(HttpServletRequest req, HttpServletResponse res)
try
res.setContentType("text/html");
PrintWriter pw= res.getWriter();
String ulogin=req.getParameter("login").trim();
String uph1=req.getParameter("ph1").trim();
int ph1=Integer.parseInt(uph1);
String upass=req.getParameter("pass").trim();
String uph2=req.getParameter("ph2").trim();
int ph2=Integer.parseInt(uph2);
String cpass=req.getParameter("cfm").trim();
String uweb=req.getParameter("web").trim();
String ufirst=req.getParameter("first").trim();
String uaddress=req.getParameter("address").trim();
String umiddle=req.getParameter("middle").trim();
String ucity=req.getParameter("city").trim();
String ulast=req.getParameter("last").trim();
String uzip=req.getParameter("zip").trim();
int zip=Integer.parseInt(uzip);
String ud=req.getParameter("Aday").trim();
String um=req.getParameter("Amonth").trim();
String uy=req.getParameter("Ayear").trim();
SimpleDateFormat din=new SimpleDateFormat("dd-mm-yyyy");
SimpleDateFormat dout=new SimpleDateFormat("yyyy/mm/dd");
String txtDate="2001-07-07";
Date date=din.parse(txtDate);
java.sql.Date dt=new java.sql.Date(txtDate);
dout.format(dt);
String usex=req.getParameter("sex").trim();
String uemail=req.getParameter("email").trim();
String ust=req.getParameter("st").trim();
String ucty=req.getParameter("cty").trim();
ps=con.prepareStatement("insert into Userdetails values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)");
ps.setString(1,ulogin);
ps.setString(2,uph1);
ps.setString(3,upass);
ps.setString(4,uph2);
ps.setString(5,cpass);
ps.setString(6,uweb);
ps.setString(7,ufirst);
ps.setString(8,uaddress);
ps.setString(9,umiddle);
ps.setString(10,ucity);
ps.setString(11,ulast);
ps.setString(12,uzip);
ps.setDate(13,dt);
ps.setString(14,usex);
ps.setString(15,uemail);
ps.setString(16,ust);
ps.setString(17,ucty);
int i=ps.executeUpdate();
if(i==1)
pw.println("<h3><center> Thankyou! Your details have been stored. </center></h3>");
res.sendRedirect("http://localhost:8080/SeekLogin.html");
pw.close();
else
pw.println("<h3><center>Sorry! you are not registered properly. </center></h3>");
pw.close();
catch(Exception e)
System.out.println(e);
Can anyone look this code and help me out where i am doing the mistake.
Thanks. -
Issue in Updating Date Fields in JDBC
Hi Experts ..
I am having issues in updating date fields in Oracle Database.
My Sender Sends date in format 2007-05-19T14:34:55.0000000+02:00
Can any one please suggest me how does the above format can be updated in JDBC with format 2007/05/19
Thanks !Hi,
See this Scree shot
http://img517.imageshack.us/my.php?image=16324662pf7.jpg
Take the Substring Function From Text Functionsand mention the position from 0 to 10 to take the Date alone from the Whole String which is getting in Source Field.
And after that apply the Transform date Function fron Date Functions and mention the source date format and the target date foramt that needs to convert into.
REgards
Seshagiri -
Date Format issue while Connecting to Oracle8i and Oracle10g
Hi All,
While playing around with JDBC drivers, I came across this weird issue. I have a Local machine with Japanese Locale and I have 2 Database Servers that too with Japanese Locales and Oracle 8i and Oracle 10g each. Now, I connect to these database using JDBC drivers for 8i and perform "select sysdate from dual". Then, m getting dates with 2 different format. While 8i being returning Date with 'DD-MON-RRRR' format, 10g returns date with 'DD-MM_RR' format.
Initially I thought it might be because of some VM Locale thing but when I connected to 10g DB from 8i Oracle client, this behaviour did not changed. Which mean in this case also the date format returned ny the query was different.
Guys F1! F1! (Help! Help!) Appreciate your help to understand this process. Links and suggestions welcome... :)I guess u did not read the whole content. I mentioned this but the difference in behaviour with respect to JDBC drivers made me post this in Java forum.
As I mentioned, it has something to do with the jdbc driver or oracle server itself. Agreed, but what that "something little to do" is the maiin question.
I mentioned that I want to understand this process about how JDBC driver works with Client VM specific Locale settings while interacting with Oracle Database.
Don't you think it could be interesting to know, what it is which brings this difference in results. Its all about clarifying the small bits & pieces which stays unanswered if one overlooks. Its own perception, I felt like asking question, no offense right! -
Need help - Date format in es Tag / LoadedData
hi,
I have one Date attribute called 'EXPIRATION_DATE' in DOCUMENT table.
I mapped this column entry in 'application-config.xml' as jdbc.column.EXPIRATION_DATE=ExpirationDate;
And when I am trying to get this value in JSP,within '<es:forEachInArray>' tag
scope, using the syntax below
<%
String strDate = (String)doc.getProperty("LodedDate","ExpirationDate");
%>
I am getting different formatted results in different environments
Like , when I executed this in windows ,
I got the resulted string as "Mon Jul 07 00:00:00 EDT 2003" , which can be converted
to 'Date' type
using <% Date exp_date = new Date(strDate); %> which solves my problem.
But , when I executed same code to UNIX ,
I got the resulted string as "2009-02-01 00:00:00.0" , which is not convertible
to 'Date' format.
I got the following exception , when I try to convert this resulted String to
date format like.
<% Date exp_date = new Date(strDate); %>
java.lang.IllegalArgumentException
at java.util.Date.parse(Date.java:585)
at java.util.Date.<init>(Date.java:267)
Finally , I need to convert the resulted string to "MMM dd, yyyy" (Feb 22, 2000)format.
If not above method , what is the best way to get the resulted value in this "MMM
dd, yyyy" format.
/***** My Sample code ********/
<es:forEachInArray array="<%=BankerMsgs%>" id="doc" type="Content" >
<%String strDate = "";
strDate = (String)doc.getProperty("LodedDate","ExpirationDate"); //strDate =
"Mon Jul 07 00:00:00 EDT 2003"; // Windows
//strDate = "2003-07-07 00:00:00.0"; // UNIX
out.println("Original Date is :" + strDate); // In windows env I got this formatted
result 'Mon Jul 07 00:00:00 EDT 2003' and In UNIX I got the string as '2003-07-07
00:00:00.0'
SimpleDateFormat formatter = new SimpleDateFormat ("MMM dd, yyyy");
Date strDate12 = new Date(strDate);
String strExpDate = "";
try
strExpDate = formatter.format(strDate12);
out.println("Formatted Date is :" + strExpDate); // in windows I got correct
result as 'Jul 07, 2003' and in UNIX java.lang.IllegalArgumentException
catch(Exception e) {}
%>
</es:forEachInArray>
Any help will be much appreciated.
thanks
-Amar Purumandlahi,
I have one Date attribute called 'EXPIRATION_DATE' in DOCUMENT table.
I mapped this column entry in 'application-config.xml' as jdbc.column.EXPIRATION_DATE=ExpirationDate;
And when I am trying to get this value in JSP,within '<es:forEachInArray>' tag
scope, using the syntax below
<%
String strDate = (String)doc.getProperty("LodedDate","ExpirationDate");
%>
I am getting different formatted results in different environments
Like , when I executed this in windows ,
I got the resulted string as "Mon Jul 07 00:00:00 EDT 2003" , which can be converted
to 'Date' type
using <% Date exp_date = new Date(strDate); %> which solves my problem.
But , when I executed same code to UNIX ,
I got the resulted string as "2009-02-01 00:00:00.0" , which is not convertible
to 'Date' format.
I got the following exception , when I try to convert this resulted String to
date format like.
<% Date exp_date = new Date(strDate); %>
java.lang.IllegalArgumentException
at java.util.Date.parse(Date.java:585)
at java.util.Date.<init>(Date.java:267)
Finally , I need to convert the resulted string to "MMM dd, yyyy" (Feb 22, 2000)format.
If not above method , what is the best way to get the resulted value in this "MMM
dd, yyyy" format.
/***** My Sample code ********/
<es:forEachInArray array="<%=BankerMsgs%>" id="doc" type="Content" >
<%String strDate = "";
strDate = (String)doc.getProperty("LodedDate","ExpirationDate"); //strDate =
"Mon Jul 07 00:00:00 EDT 2003"; // Windows
//strDate = "2003-07-07 00:00:00.0"; // UNIX
out.println("Original Date is :" + strDate); // In windows env I got this formatted
result 'Mon Jul 07 00:00:00 EDT 2003' and In UNIX I got the string as '2003-07-07
00:00:00.0'
SimpleDateFormat formatter = new SimpleDateFormat ("MMM dd, yyyy");
Date strDate12 = new Date(strDate);
String strExpDate = "";
try
strExpDate = formatter.format(strDate12);
out.println("Formatted Date is :" + strExpDate); // in windows I got correct
result as 'Jul 07, 2003' and in UNIX java.lang.IllegalArgumentException
catch(Exception e) {}
%>
</es:forEachInArray>
Any help will be much appreciated.
thanks
-Amar Purumandla -
How to set the default date format to populate a CachedRowSet...
Hi, I'm working with JDBC to retrieve some data from an Informix Database, I'm also using Flash Remoting as my User Interface.
The thing is, when I'm trying to display the recordset, the Date Format looks like this: "Fri Jan 29 18:00:00 GMT-0600 1999" so Flash cannot translate this format.
This is my Java code:
Class.forName(cnxDRV);
conn = DriverManager.getConnection(cnxURL);
Statement stmt = conn.createStatement( );
ResultSet rs = stmt.executeQuery( xSQL );
rowset = new CachedRowSetImpl();
rowset.populate(rs);
rs.close( );
stmt.close( );
conn.close();
return rowset;
May be, I need to insert every row on the CachedRowSet and specify the format with SimpleDateFormat, instead of using populate(), but, is there some other solution?USman,
Have you tried converting the date to your mm/dd/yyyy format before it is
sent back to the screen?
HTML:
<htmlb:inputField id = "startDate"
type = "date"
required = "false"
size = "7"
maxlength = "10"
firstDayOfWeek = "0"
showHelp = "X"
value = "<%= model-sdate %>" />
DO_HANDLE_EVENT:
inputfield ?= CL_HTMLB_MANAGER=>GET_DATA(
request = runtime->server->request
name = 'inputfield'
id = 'startDate' ).
IF inputfield->value IS NOT INITIAL.
call method model->convert_to_sap_date
EXPORTING
in_date = inputfield->value
IMPORTING
out_date = model->sdate.
IF model->sdate IS INITIAL.
me->messages->add_message(
condition = 'start'
message = 'Start Date is invalid'
severity = me->messages->CO_SEVERITY_ERROR ).
ENDIF.
ELSE.
me->messages->add_message(
condition = 'start'
message = 'Start Date is required'
severity = me->messages->CO_SEVERITY_ERROR ).
ENDIF.
method CONVERT_TO_SAP_DATE .
CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
EXPORTING
DATE_EXTERNAL = in_date
IMPORTING
DATE_INTERNAL = out_date
EXCEPTIONS
DATE_EXTERNAL_IS_INVALID = 1
OTHERS = 2.
endmethod. -
Hello,
I use jstl with sql, e.g.
<sql:query var="results" dataSource="jdbc/my_db">
SELECT create_date
FROM my_table
</sql:query>
<c:forEach var="row" items="${results.rows}" varStatus="counter">
${row.create_date}<br>
</c:forEach>the result is:
2009-09-15
2009-09-16
2009-09-17
In the field create_date are date and time saved. I would like to get the result in format dd.mm.yyyy hh24:mi:ss. But I don't want to write
SELECT to_char(create_date,'dd.mm.yyyy hh24:mi:ss')
FROM my_table
because I have a lot of fields with a date.
Is it possible to set a default date format for the page or the webapp...?
Could anyone help me, please?
Claudia
PS:
I've tried to change NLS_DATE_FORMAT on the database (ALTER SESSION SET NLS_DATE_FORMAT='dd.mm.yyyy hh24:mi:ss'), but the result is the same :-(
I've installed Linux with apache tomcatasking wrote:
No, I didn't know that. Very interesting!
But it's a pity. It's an easy way to show data of a simply query.It might be easy to code, but it's hard to reuse, debug, maintain, and so on.
But for all that ... If I wouldn't use jstl for the query ... it is not possible to use a standard default date format or the nls_date_format of the oracle database?
I have to pattern each column?Those two are completely independent of each other. -
Hi,
When using the RIDC to call the EXPIRE_UNEXPIRE_DOC_BY_NAME service to expire an item, I get an error like:
intradoc.common.ServiceException: !syUnableToParseDate,2012-01-06 10:07:03Z!syUnableToFindText,/
at intradoc.common.LocaleResources.parseDateEx(LocaleResources.java:2659)
at intradoc.common.LocaleResources.parseDate(LocaleResources.java:2626)
at intradoc.data.QueryUtils.appendParam(QueryUtils.java:441)
at intradoc.jdbc.JdbcQueryUtils.buildQuery(JdbcQueryUtils.java:178)
at intradoc.jdbc.JdbcWorkspace.buildQuery(JdbcWorkspace.java:716)
at intradoc.jdbc.JdbcWorkspace.execute(JdbcWorkspace.java:560)
at intradoc.server.DocServiceHandler.expireUnexpireDocument(DocServiceHandler.java:5271)
The RIDC call sets in the binder a date format which collides with the date format expected by CS, specifically RIDC uses iso8601 format and the CS expects something like: M/d{yy}{ h:mm[:ss]{ a}}!mAM,PM!tEurope/Berlin
What kind of date format is this: M/d{yy}{ h:mm[:ss]{ a}}!mAM,PM!tEurope/Berlin and how can this format be used for the RIDC call?
Thanks,
VladTry 01/14/2012
The rest is optional.
Maybe you are looking for
-
Can anyone help me find a song I heard over and over in St. Lucia in April, 2007? It was a reggae or soca song that was played regularly in the resort we stayed at and all over the island where we visited.
-
I'm having a problem playing some ItunesU videos, some play okay, some just show black screen and don't play, others show a still image but then doesn't play when trying to view them from itunes store. The audio files play with no issues. I am using
-
Pictures stored in SD card disappear...
Pictures are normally stored in the internal memory. However you can change to SD card and a new floder \DCIM\100ANDRO is created, so the token pictures are stored there. OK, but now, if I a change again to internal memory, after a few days, the whol
-
Is it possible to set the precision for the subtraction operator?
Hi everyone. I have two complex double precision numbers that are suppose to be equals. Each one is the result of different sets of equations. When I subtract one from the other the result is not zero. I think this can be explain by the fact that the
-
+materialize causes I/O ?
We use a query like this on Oracle 11.2g (in a PL/SQL stored procedure): WITH x AS ( SELECT /*+materialize*/ FK1ID, FK2Id, FK3Id FROM SOME_VIEW WHERE some_ID = p_some_parameter) -- an IN parameter of the stored procedure SELECT foo, bar, baz FRO