Solved

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

Posted on 2011-09-14
3
1,124 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 82

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
This article explains all about SQL Server Piecemeal Restore with examples in step by step manner.
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now