From 525033fe4f38dc3f784de7c4312e48f92860c477 Mon Sep 17 00:00:00 2001 From: Yehonal Date: Sun, 24 Feb 2019 17:16:01 +0100 Subject: Update Dealing-with-SQL-files.md --- docs/Dealing-with-SQL-files.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'docs') diff --git a/docs/Dealing-with-SQL-files.md b/docs/Dealing-with-SQL-files.md index aaeede0..c87a28b 100644 --- a/docs/Dealing-with-SQL-files.md +++ b/docs/Dealing-with-SQL-files.md @@ -12,8 +12,8 @@ Also remember to: - surround any table or field name with `backticks`, and string values with `single quotes`, example: -```SQL - UPDATE `table_name` SET `field_I_want_to_change` = 'new string value' WHERE `entry` = 10 ; +```sql +UPDATE `table_name` SET `field_I_want_to_change` = 'new string value' WHERE `entry` = 10 ; ``` ## Write compact code @@ -25,9 +25,9 @@ Compact code helps to keep the size of our SQL update files small, so installing Bad: ```SQL - INSERT INTO `table_1` VALUES (1000, ...); - INSERT INTO `table_1` VALUES (2000, ...); - INSERT INTO `table_1` VALUES (3000, ...); +INSERT INTO `table_1` VALUES (1000, ...); +INSERT INTO `table_1` VALUES (2000, ...); +INSERT INTO `table_1` VALUES (3000, ...); ``` -- cgit