Parameterized SQL text for Oracle?

  • Thread starter Thread starter Q. John Chen
  • Start date Start date
Q

Q. John Chen

When using SQL Sever, you can do:
string sql = "SELECT abc FROM mytable WHERE abe > @ABC";

I am wondering if this works for Oracle.
 
"SELECT abc FROM mytable WHERE abe > :ABC"

The idea is to use ':' instead of '@'

When using SQL Sever, you can do:
string sql = "SELECT abc FROM mytable WHERE abe > @ABC";

I am wondering if this works for Oracle.
 
That what I want to know.

I guess the parameter name will be "ABC" without the quote rather than
":ABC."

Thanks

John
 
Just for people out there see this:

The parameter name is :ABC

Yes, with the column.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top