Cara mengatasi error seperti ini gimana ya? saya mau melakukan multi insert ke database

Error: INSERT INTO pembelian (id_user, product_code,name_product,price,qty,total_price,date_order) VALUES ('4','A002','Toraja','60,000','2','120,000.00','19-08-12'), You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 2Error: INSERT INTO pembelian (id_user, product_code,name_product,price,qty,total_price,date_order) VALUES ('4','A001','Gayo','60,000','1','60,000.00','19-08-12'), You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 2

avatar denisaputra
@denisaputra

1 Kontribusi 0 Poin

Diperbarui 4 tahun yang lalu

1 Jawaban:

hay @denisaputra untuk field price dan total_price kamu tidak perlu menggunakan koma, untuk memisahkan nilai kamu bs menggunakan titik.

avatar bosque
@bosque

187 Kontribusi 104 Poin

Dipost 4 tahun yang lalu

Login untuk ikut Jawaban