Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 91e0b4a

Browse files
Merge pull request #1 from amitness/patch-1
Fix syntax highlighting for sql
2 parents ac27f73 + 6222eb1 commit 91e0b4a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎units/database/1/database-and-sql.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ The SQL language consists entire vocabulary for database management, querying, i
6060
For example:
6161
This is an example SQL query that retrieves a list of users whose emails start with `foo@`:
6262

63-
```
63+
```sql
6464
SELECT * FROM users WHERE email LIKE 'foo@%';
6565
```
6666

@@ -302,12 +302,12 @@ UPDATE table_name SET col1 = value1, col2 = value2... WHERE condition;
302302
```
303303

304304
Try this:
305-
```
305+
```sql
306306
UPDATE users SET last_name = 'Test' WHERE email LIKE '%test.com';
307307
```
308308

309309
Now if you check the records again, you should see this:
310-
```
310+
```sql
311311
SELECT * FROM users;
312312
```
313313
```
@@ -336,7 +336,7 @@ DELETE FROM users WHERE id = 1 or id = 3;
336336
```
337337

338338
Now if you check the records again, you should see 2 records have been removed:
339-
```
339+
```sql
340340
SELECT * FROM users;
341341
```
342342
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /