Welcome to collectivesolver - Programming & Software Q&A. A website you can trust. All programs tested and works. Contact: aviboots(AT)netvision.net.il
Hostgator 1 Penny

BlueHost Web Hosting

Ecommerce Software - Best Ecommerce Platform Made for You - Free Trial

Ecommerce Software - Best Ecommerce Platform Made for You - Free Trial

getflywheel wordpress hosting


Distribute your Resume to 500+ Job Boards & Recruiters


7,586 questions

10,629 answers

573 users

How to use Alias for columns in SQL

3 Answers

0 votes
SELECT FirstName AS fn
FROM Workers

 




answered Sep 18, 2015 by avibootz
0 votes
-- Work with MySQL

SELECT DISTINCT category AS 'c t' -- Two words quotes around column alias
FROM info_table

-- Use with $row['c t']

 




answered Sep 18, 2015 by avibootz
edited Sep 18, 2015 by avibootz
0 votes
-- Work with MySQL

SELECT CONCAT(category,',',info) AS ci
FROM info_table

-- Use with $row['ci']

 




answered Sep 18, 2015 by avibootz
...