Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL request?

Status
Not open for further replies.

naceur

Programmer
May 29, 2001
3
FR
I want to use this request "select count(distinct Name_Champ) from Name_table into temp Name_temprory_table;"
in MySql.
but the response of the MySql is:
"MySQL a répondu:You have an error in your SQL syntax near 'Name_temprory_table from Name_table ' at line 1"
thanks
 
what does 'distinct' inside of count mean? John Fill
1c.bmp


ivfmd@mail.md
 
This request "select count(distinct Name_Champ) from Name_table into temp Name_temprory_table;" mean's :
Select the count of all distinct Name_Champ and insert it in temporary table named Name_temprory_table.
thinks.
 
As I know, it means nothing.
Correct is:
select distinct count(Name_... John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top