If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > select count (*) from table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-29-03, 13:53
johny_x johny_x is offline
Registered User
 
Join Date: Nov 2002
Posts: 3
select count (*) from table

Hello,
I am installing mysql on winxp home.
In mysqlcc select works fine. but select count (*) from table result in a error in sintax.

Rollback does not work.
What is the innodb ?

Any idea what is wrong.
Regards
Reply With Quote
  #2 (permalink)  
Old 12-29-03, 15:23
vanekl vanekl is offline
Registered User
 
Join Date: Nov 2003
Posts: 91
It looks like you have a space after count.
The statement should instead read:
SELECT COUNT(*) FROM table;

InnoDB tables support transactions. Unless you specifically
specified that the table type should be InnoDB in your
'CREATE TABLE' statement, chances are you don't have a
table that supports transactions.

Once you've created your InnoDB tables, transaction syntax
is the following:
http://www.mysql.com/documentation/m...ce.html#COMMIT
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On