How To Start and End Transact-SQL Statements?
Submitted by: AdministratorThere are simple rule about writing Transact-SQL statements:
* A Transact-SQL statement should be started with a pre-defined statement keyword.
* A Transact-SQL statement should be ended with a new line (/n) or a semicolon (;).
* A Transact-SQL statement can be entered in a single line or multiple lines.
* Transact-SQL statement keywords are case-insensitive.
* Extra white space characters are ignored within Transact-SQL statements.
Here are some good examples of Transact-SQL statements:
CREATE TABLE ggl_links (id INTEGER PRIMARY KEY,
url VARCHAR(80) NOT NULL,
notes VARCHAR(1024),
counts INT,
created DATETIME NOT NULL DEFAULT(getdate()));
SeLeCT 'Welcome to GlobalGuideLine.com SQL Server!';
Print 'Come visit this page again!'
Submitted by: Administrator
* A Transact-SQL statement should be started with a pre-defined statement keyword.
* A Transact-SQL statement should be ended with a new line (/n) or a semicolon (;).
* A Transact-SQL statement can be entered in a single line or multiple lines.
* Transact-SQL statement keywords are case-insensitive.
* Extra white space characters are ignored within Transact-SQL statements.
Here are some good examples of Transact-SQL statements:
CREATE TABLE ggl_links (id INTEGER PRIMARY KEY,
url VARCHAR(80) NOT NULL,
notes VARCHAR(1024),
counts INT,
created DATETIME NOT NULL DEFAULT(getdate()));
SeLeCT 'Welcome to GlobalGuideLine.com SQL Server!';
Print 'Come visit this page again!'
Submitted by: Administrator
Read Online MS SQL Server Job Interview Questions And Answers
Top MS SQL Server Questions
☺ | What Is a Transact-SQL Statement Batch in MS SQL Server? |
☺ | How To Execute the Cursor Queries with "OPEN" Statements? |
☺ | What Happens If Strings Are Casted into Wrong Code Pages in MS SQL Server? |
☺ | PHP MSSQL - How To Display a Past Time in Days, Hours and Minutes? |
☺ | How To Create a Large Table with Random Data for Index Testing in MS SQL Server? |
Top Databases Programming Categories
☺ | RDBMS Interview Questions. |
☺ | SQL Interview Questions. |
☺ | SSRS Interview Questions. |
☺ | Database Administrator (DBA) Interview Questions. |
☺ | Sybase Interview Questions. |