Click here to get back home

Problems with SELECT

 HomeNewsGroups | Search | About
 mailing.database.mysql    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Problems with SELECT richard 07-18-2007
Get Chitika Premium
Posted by richard on July 18, 2007, 3:11 am
Please log in for more thread options
I am having a problem with SELECT. The table has 3 rows. I am using
the C api. Here is my C code.

count = mysql_query(my_db, "SELECT * FROM accounts");
er = mysql_error(my_db);
res = mysql_use_result(my_db);
num_row = mysql_num_rows(res);

count is returned as 0 (no error)
er is NULL (no error)
res is trturned valid
num_row is returned as 0

I have full permissions to the data base and its tables. I can retrieve
data from other tables in the database.

Does any one have an idea as to what is amiss here. I can add to the
table and get the correct error when I try to add or update the table
with duplicate key fields.

Thanks Richard


Similar ThreadsPosted
update [table] select - but I only need part of the column field value to select January 26, 2006, 2:38 pm
Problems with getting the right data ? February 8, 2006, 6:50 am
problems accessing dev.mysql.com October 11, 2005, 11:48 am
new instance / installation problems March 1, 2006, 11:55 am
Mysql querie problems March 30, 2006, 2:24 am
Problems connecting to ODBC July 24, 2006, 10:42 pm
getchunk problems using mysql 5.0 September 4, 2006, 11:23 am
Problems with grouping and Sort September 12, 2006, 6:46 am
mysql Install Problems November 1, 2006, 11:49 am
Append Query Problems January 5, 2007, 12:21 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap