skip to main |
skip to sidebar
0
Posted on 10:05 AM by Hamid and filed under
SQL Syntax - SELECT,
UPDATE and DELETE
Below is the Lists of possible syntax for SELECT,UPDATE and DELETESELECT Syntax - Get Information from a table in database
SELECT ColumnName1,ColumnName2, ColumnName3 FROM TableName
SELECT DISTINCT ColumnName FROM TableNameSELECT COUNT (ColumnName) FROM TableName
SELECT ColumnName FROM TableName WHERE ColumnName = value
SELECT ColumnName FROM TableName WHERE ColumnName1 = value AND ColumnName2 = valueSELECT ColumnName FROM TableName WHERE ColumnName1 = value OR ColumnName2 = valueSELECT ColumnName FROM TableName WHERE ColumnName IN (Value1,Value2)
SELECT ColumnName FROM TableName WHERE ColumnName BETWEEN (Value1 AND Value2) SELECT ColumnName FROM TableName WHERE ColumnName Like '%Value1%' SELECT ColumnName FROM TableName ORDER BY ColumnName
SELECT ColumnName1 , SUM(ColumnName2 ) FROM TableName GROUP BY ColumnName1 HAVING (Arithematic Condition)UPDATE SyntaxUPDATE
TableName SET
ColumnName =
Value WHERE {Condition}UPDATE
TableName SET
ColumnName = Value WHERE
ColumnName = value
DELETE SyntaxDELETE
TableName WHERE {Condition}DELETE
TableName WHERE
ColumnName = value
Post a Comment