diff options
Diffstat (limited to 'examples.php')
-rw-r--r-- | examples.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/examples.php b/examples.php new file mode 100644 index 0000000..4051d60 --- /dev/null +++ b/examples.php @@ -0,0 +1,9 @@ +<?php +require_once('SqlFormatter.php'); + +$sql = "SELECT count(*),`Column1`,`Testing`, `Testing Three` FROM `Table1` +WHERE Column1 = 'testing' AND ( (`Column2` = `Column3` OR Column4 >= NOW()) ) +ORDER BY Column3 DESC GROUP BY Column1 LIMIT 5,10"; + +echo SqlFormatter::format($sql); +?> |