3

Please excuse me if my question is simple. because when I see the examples about php and MySql in internet, they use from the capital letters for commends MySql.

Is it necessary to use the capital letters in MySql?

$sql = "INSERT INTO MyGuests (firstname, lastname, email)
VALUES ('John', 'Doe', 'john@example.com')";
HoldOffHunger
  • 18,769
  • 10
  • 104
  • 133
computer
  • 41
  • 1
  • 3

1 Answers1

6

It is not required to use capital letters. You could use small letters too.

However for structure of code, to beautify the code and to show highlights it is better to use Capital letters in syntax such as INSERT instead of insert. This will help to identify easily when we write complicated scripts with subqueries.

And as per human nature, Capital letters are fast visible than small letters.

Hope this helps.

alagu
  • 779
  • 1
  • 5
  • 19