Question · SQL and MySQL course · Module 1: Introduction to databases
Whitespace in a query
Are these two queries equivalent: "SELECT tytul FROM ksiazki;" and the same one split across two lines?
Answer options
- Yes - SQL ignores extra spaces and new lines
- No - every query must be on a single line
- No - moving to a new line ends the query
- Only if we remove the semicolon
Show the answer
Correct answer:
- Yes - SQL ignores extra spaces and new lines