| Start |
|---|
| Getting started This section describes some basic DDL (="Data Definition Language") commands to create a database, a table within a database, a view and finally a stored procedure. Create DatabaseThe following SQL command creates a new database Note: A T-SQL database consists of two files, the database file Create TableThe following SQL command creates a new table Create ViewThe following SQL command creates a new view This will join tables Create ProcedureThe following SQL command creates a new stored procedure This stored procedure, after it has been created, can be invoked as follows: which will return all order details with @OrderId=10248 (and quantity >=0 as default). Or you can specify the optional parameter which will return only orders with a minimum quantity of 10 (or more). |
Read Article
https://develop.horje.com/learn/1434/reference