Postingan lainnya
Buku Ini Koding!
Baru!
Buku ini akan jadi teman perjalanan kamu belajar sampai dapat kerjaan di dunia programming!
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
1 Jawaban:
hay @denisaputra untuk field price dan total_price kamu tidak perlu menggunakan koma, untuk memisahkan nilai kamu bs menggunakan titik.