HFChristie
Programmer
I've got a general question about SQL syntax in SQL Server. Our DB has prolific use of the square brackets around column names in SQL statements, but isn't using them around all.
I'm having trouble accessing the help on my system (keeps running out of virtual memory), so I haven't been able to look through that as I had hoped.
Anyway, my question is this;
What is the difference between
SELECT [company], [company_id], [address] FROM ...
and
SELECT [company], company_id, [address] FROM ...
and
SELECT company, company_id, address FROM ...
where both are from the same table, and all three columns are valid for the table.
Thanks
I'm having trouble accessing the help on my system (keeps running out of virtual memory), so I haven't been able to look through that as I had hoped.
Anyway, my question is this;
What is the difference between
SELECT [company], [company_id], [address] FROM ...
and
SELECT [company], company_id, [address] FROM ...
and
SELECT company, company_id, address FROM ...
where both are from the same table, and all three columns are valid for the table.
Thanks