Solved

MySQL query returning with error "You have to choose at least one column to display"

Posted on 2011-09-14
3
1,131 Views
Last Modified: 2012-05-12
CREATE TABLE users (
user_id INT UNSIGNED NOT NULL AUTO_INCREMENT,
first_name VARCHAR(20) NOT NULL,
When I run the following query within PHPMyAdmin...


last_name VARCHAR(40) NOT NULL,
email VARCHAR(80) NOT NULL,
pass CHAR(40) NOT NULL,
user_level TINYINT(1) UNSIGNED NOT NULL DEFAULT 0,
active CHAR(32),
registration_date DATETIME NOT NULL,
PRIMARY KEY (user_id),
UNIQUE KEY (email),
INDEX login (email, pass)
);


I get the following error...

"You have to choose at least one column to display"

Any ideas why it's doing this?what do Ineed to change?
0
Comment
Question by:BrighteyesDesign
3 Comments
 
LVL 24

Accepted Solution

by:
johanntagle earned 500 total points
ID: 36539839
Can't replicate it.  See attached.
phpmyadmin.png
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 36539843
Your question doesn't look right.  Can you repost the query?
0
 

Author Comment

by:BrighteyesDesign
ID: 36539947
Apologies,I...erm.....entered the code into 'Query" rather than "SQL' : /

Your screenshot made me realise what I was doing wrong so you solved this in a round about way!

0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article explains all about SQL Server Piecemeal Restore with examples in step by step manner.
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question