Skip to content

Commit 5cbe482

Browse files
authored
added sql colorizer
and capitalized the keywords
1 parent ef1c9d5 commit 5cbe482

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

docs/t-sql/queries/select-clause-transact-sql.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ ms.author: vanto
3838
## Syntax
3939

4040
```syntaxsql
41-
4241
SELECT [ ALL | DISTINCT ]
4342
[ TOP ( expression ) [ PERCENT ] [ WITH TIES ] ]
4443
<select_list>
@@ -117,13 +116,13 @@ SELECT [ ALL | DISTINCT ]
117116

118117
The following example selects the values for the `Location` column, defined as type `point`, from the `Cities` table, by invoking a method of the type called `Distance`:
119118

120-
```
119+
```sql
121120
CREATE TABLE dbo.Cities (
122-
Name varchar(20),
123-
State varchar(20),
124-
Location point );
121+
Name VARCHAR(20),
122+
State VARCHAR(20),
123+
Location POINT);
125124
GO
126-
DECLARE @p point (32, 23), @distance float;
125+
DECLARE @p POINT (32, 23), @distance FLOAT;
127126
GO
128127
SELECT Location.Distance (@p)
129128
FROM Cities;

0 commit comments

Comments
 (0)