Reputation: 11
I want to ask a SQL database to get the structured SQL code back of my query.
For example this SQL code:
SELECT customer_id, customer_name. customer_surname, customer_street
FROM customer
WHERE customer_name = "%benz%"
should be answered in a query to the SQL database like that:
SELECT
customer_id,
customer_name,
customer_surname,
customer_street
FROM
customer
WHERE
customer_name = "%benz%"
Does anybody know how to solve this?
Upvotes: 1
Views: 791
Reputation: 48810
Just a note since I see no other answers (yet).
You can use a number of editors to format (aka "beautify") your SQL query. For example:
Ctrl+Alt+F
.Upvotes: 1