0
已創建表,並已插入先前MySQL的不插入數據
似乎無法執行INSERT命令,沒有在這個階段
有重置mysql的嘗試過其他的數據,仍然沒有它...
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.6.20 MySQL Community Server (GPL)
Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> USE X32334732
Database changed
mysql> INSERT INTO Product (Name, Picture, Type, Description, Sales_Price) VALUE
S ("FIFA 15", "pics/games/fifa.jpg", "Game - ps4", "Soccer Sports Game", 44.95);
感謝您的任何幫助。
由於2 Codebird,我用的是「沒有」......新手的錯誤,我猜。TY
我的表結構... CREATE TABLE產品( Pd_Key INT AUTO_INCREMENT, 名稱VARCHAR(35)NOT NULL, 圖片爲varchar(255), 類型爲varchar(12), 說明VARCHAR(200)NOT NULL, Sales_Price decimal(5,2)NOT NULL, CONSTRAINT pdkey_pk PRIMARY KEY(pd_Key)); – 2014-10-28 11:48:45
你是否收到任何返回的錯誤消息? – danmullen 2014-10-28 11:49:47
不要在字符串周圍使用'''使用'''它會插入。你應該注意到它,只要你輸入並且它沒有運行你的查詢 – CodeBird 2014-10-28 11:49:49