|
-
Oct 13th, 2011, 07:09 AM
#1
Thread Starter
New Member
Mysql fatal error during command execution
public DataSet GetTotalAmountDetailsDB(NewPhotoViewModel npvm)
{
MySqlConnection con = new MySqlConnection(ConStr);
string cmdstr = "SELECT n.Price FROM (SELECT @rownum + 1 r, Price,Quantity FROM printmaster WHERE Quantity >= 13 And size='4*4' ORDER BY Quantity) n, (SELECT @rownum := 0) r WHERE r = 1 LIMIT 1";
MySqlCommand cmd = new MySqlCommand(cmdstr, con);
DataSet ds = new DataSet();
MySqlDataAdapter da = new MySqlDataAdapter(cmd);
da.Fill(ds);
return ds;
}
when i executing the querry i encountered Mysql fatal error during command execution. Is there any wrong in this querry.... plz help me....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|