Jump to content

Archived

This topic is now archived and is closed to further replies.

WayneO

Insert Select Question

Recommended Posts

The Insert Select command is new to me.

Would someone please tell me the error in the following:

 

mysql_query (\"INSERT INTO tmp_balances (bal_id,CustId,PAID,USED,Bal) SELECT ($CustId,sum($payment),sum($useage),sum($useage)-sum($payment)from transactions GROUP BY CustId)\")or die(mysql_error());

 

Thanks

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.