Where can I find the ANSI SQL 2003 specification for stored procedures?
Appendix A. Frequently Asked Questions About MySQL 5.1Unfortunately, the official specifications are not freely available (ANSI makes them available for purchase). However, there are books - such as SQL-99 Complete, Really by Peter Gulutzan and Trudy Pelzer - which give a comprehensive overview of the standard, including coverage of stored procedures.
Should one use PL/SQL or Java to code procedures and triggers?
PL/SQL FAQ - Oracle FAQBoth PL/SQL and Java can be used to create Oracle stored procedures and triggers. This often leads to questions like "Which of the two is the best?" and "Will Oracle ever desupport PL/SQL in favour of Java?". Many Oracle applications are based on PL/SQL and it would be difficult of Oracle to ever desupport PL/SQL. In fact, all indications are that PL/SQL still has a bright future ahead of it. Many enhancements are still being made to PL/SQL. See similar questions...
When Should I Use Bind Variables with PL/SQL?
G Frequently Asked Questions About PL/SQLWhen you imbed an INSERT, UPDATE, DELETE, or SELECT SQL statement directly in your PL/SQL code, PL/SQL turns the variables in the WHERE and VALUES clauses into bind variables automatically. Oracle can reuse these SQL statement each time the same code is executed. To run similar statements with different variable values, you can save parsing overhead by calling a stored procedure that accepts parameters, then issues the statements with the parameters substituted in the right places. See similar questions...
How Can I Use Regular Expressions with PL/SQL?
G Frequently Asked Questions About PL/SQLYou can test or manipulate strings using the built-in functions REGEXP_INSTR, REGEXP_REPLACE, and REGEXP_SUBSTR. Oracle's regular expression features use characters like '.', '*', '^', and '$' that you might be familiar with from UNIX or Perl programming. For multi-language programming, there are also extensions such as '[:lower:]' to match a lowercase letter, instead of '[a-z]' which does not match lowercase accented letters. See similar questions...
Where are stored procedures stored?
Appendix A. Frequently Asked Questions About MySQL 5.1In the proc table of the mysql system database. However, you should not access the tables in the system database directly. Instead, use SHOW CREATE FUNCTION to obtain information about stored functions, and SHOW CREATE PROCEDURE to obtain information about stored procedures. See Section 13.5.4.8, "SHOW CREATE PROCEDURE and SHOW CREATE FUNCTION Syntax", for more information about these statements. You can also query the ROUTINES table in the INFORMATION_SCHEMA database - see Section 22. See similar questions...
Can one use dynamic SQL statements from PL/SQL?
PL/SQL FAQ - Oracle FAQStarting from Oracle8i one can use the "EXECUTE IMMEDIATE" statement to execute dynamic SQL and PL/SQL statements (statements created at run-time). Look at these examples. Note that the statements within quotes are NOT semicolon terminated: EXECUTE IMMEDIATE 'CREATE TABLE x (a NUMBER)'; -- Using bind variables... sql_stmt := 'INSERT INTO dept VALUES (:1, :2, :3)'; EXECUTE IMMEDIATE sql_stmt USING dept_id, dept_name, location; -- Returning a cursor.. See similar questions...
How can I get return values from stored procedures with DBI?
AnnoCPAN - DBI::FAQContributed by Jeff Urlwin $sth = $dbh->prepare( "BEGIN foo(:1, :2, :3); END;" ); $sth->bind_param(1, $a); $sth->bind_param_inout(2, \$path, 2000); $sth->bind_param_inout(3, \$success, 2000); $sth->execute; See similar questions...
Why can't I debug SQL stored procedures?
Gooey Bugs : Visual Studio Debugger FAQMost likely you're trying to debug on a version of VS that doesn't support SQL debugging. You need Visual Studio Professional Edition or higher. Credentials used to run VS and to make connection to SQL Server must have SA role e.g. part of Administrators group on SQL Server box. Go to https://connect.microsoft.com/site/sitehome.aspx?SiteID=210&wa=wsignin1.0 and click on Submit Feedback and follow steps to file a bug/suggestion against VS debugger. See similar questions...
Why are Stored Procedures not created when I import an SQL-file?
Webyog FAQ - powered by phpMyFAQ 2.0.2This is a privilege issue.You will probably get the error 1044 "Access denied ..." or 1370 "Alter routine command denied to user ...". ... See similar questions...
What are the Blocks in PL/SQL?
PL/SQL FAQ - Page 2Latest Answer: Hi All,I am new to this community. It seems the question is related to Begin End block of PL/SQL. Se... Latest Answer: You must be speaking about PLS_INTEGER. PLS_INTEGER, uses machine-arithmetic unlike BINARY_INTEGER... Latest Answer: DESC will display the values in DESCending order when used in an ORDER BY clause.For example:SELECT ... Latest Answer: In hash join hash table gets build using the inputs. Nested loops as the name implies uses looping c.. See similar questions...
How Do I Continue After a PL/SQL Exception?
G Frequently Asked Questions About PL/SQLBy default, you put an exception handler at the end of a subprogram to handle exceptions that are raised anywhere inside the subprogram. To continue executing from the spot where an exception happens, enclose the code that might raise an exception inside another BEGIN-END block with its own exception handler. For example, you might put separate BEGIN-END blocks around groups of SQL statements that might raise NO_DATA_FOUND, or around arithmetic operations that might raise DIVIDE_BY_ZERO. See similar questions...
What is the difference between SQL and PL/SQL?
PL/SQL FAQ - Oracle FAQSQL is a limited language that allows you to directly interact with the database. You can write queries (SELECT), manipulate objects (DDL) and data (DML) with SQL. However, SQL doesn't include all the things that normal programming languages have, such as loops and IF...THEN...ELSE statements. PL/SQL is a normal programming language that includes all the features of most other programming languages. See similar questions...
Why doesn't the Java Pet Store Demo use stored procedures?
Questions and Answers - Frequently Asked QuestionsWe don't use stored procedures since they will result in a non-portable application. Our design allows, however, for stored procedures to be added elegantly--all you need to do is to provide an alternate Data Access Object that plugs into the application architecture and makes stored procedure calls. These are essentially a performance optimization that are particular to a specific application and its deployment environment. See similar questions...
Is there a way to view all stored procedures and stored functions in a given database?
Appendix A. Frequently Asked Questions About MySQL 5.1Yes. For a database named dbname, use this query on the INFORMATION_SCHEMA.ROUTINES table: SELECT ROUTINE_TYPE, ROUTINE_NAME FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_SCHEMA='dbname'; The body of a stored routine can be viewed using SHOW CREATE FUNCTION (for a stored function) or SHOW CREATE PROCEDURE (for a stored procedure). See Section 13.5.4.8, "SHOW CREATE PROCEDURE and SHOW CREATE FUNCTION Syntax", for more information. See similar questions...
Can SQL Compare handle stored procedures and functions that were renamed using sp_rename?
SQL Compare - Frequently asked questionsYes. If a database schema has become inconsistent due to the use of sp_rename, and a stored procedure or a function definition refers to a different name from what is in the system tables, SQL Compare 6 automatically fixes these inconsistencies. See similar questions...
Do stored procedures have a statement for raising application errors?
Appendix A. Frequently Asked Questions About MySQL 5.1Not in MySQL 5.1. We intend to implement the SQL standard SIGNAL and RESIGNAL statements in a future MySQL release. See similar questions...
Do stored procedures provide exception handling?
Appendix A. Frequently Asked Questions About MySQL 5.1MySQL implements HANDLER definitions according to the SQL standard. See Section 18.2.8.2, "DECLARE Handlers", for details. See similar questions...
Explore Other Topics
Are McDonald's fries made with beef?What are the Swarovski "logos"?
What causes a magnetic field?
Where are the eclipse plugin dependencies?
How Accurate is the Breath Test?
How many people play poker?
How are "digestible carbs" different from "net carbs"?
How do I get an application for a WCTLC permit?
What are your typical server specifications?
How are ulcers transmitted?
