我试图在我的数据库中创建一个表格accountdb
。我查询创建表:如何在数据库中创建表格
$query1="CREATE TABLE asset(id int(16) auto_increment primary key,TotBalance double(35),creditAmnt double(35),debitAmnt double(35))";
之后,当我在执行上面的查询,创建数据库,但在创建表的错误。错误如下:
error creating tableYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '),creditAmnt double(35),debitAmnt double(35))' at line 1
我该如何解决这个错误?
请帮助我,因为我是新的PHP。 – 2015-02-08 05:54:41