Oracle Practical Essays in C #

Source: Internet
Author: User

1. Write the SQL statement in PL/C, and habitually end with a semicolon (";"), but write the SQL statement without adding ";".

For example:

With data as (...) SELECT * from data;
With a semicolon in the back, I'll report a

ORA-00911: Invalid character
Such a mistake.

2. Call stored procedures in C #, often make common sense errors, the following is the correct way to use

Note: Here the parameter name cannot be preceded by ":" oracleparameter[] parameter = {New OracleParameter ("P_pscode", oracletype.number,15), new Oracl  Eparameter ("P_outputcode", oracletype.number,3), New OracleParameter ("P_pollutantcode", oracletype.varchar,50), new OracleParameter ("P_outmsg", oracletype.varchar,500)};p arameter[0]. Value = model.pscode;parameter[1]. Value = model.outputcode;parameter[2]. Value = Model.pollutantcode; PARAMETER[3]. Direction = System.Data.ParameterDirection.Output; Dbhelperora.runprocedure ("Pkg_dataxy.proc_hourwaterinputfacdata", parameter); String msg = Parameter[3]. Value.tostring ();




Oracle Practical Essays in C #

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.