2014-10-28 123 views
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

+0

我的表結構... 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

+0

你是否收到任何返回的錯誤消息? – danmullen 2014-10-28 11:49:47

+0

不要在字符串周圍使用'''使用'''它會插入。你應該注意到它,只要你輸入並且它沒有運行你的查詢 – CodeBird 2014-10-28 11:49:49

回答

0

當控制檯說‘>,這意味着你用雙引號(字符串內’ )未閉合。

你已經張貼在這裏似乎並不具有任何未關閉的雙引號中的字符串,但你似乎從來不有一個。仔細檢查您輸入。

你可以出去你現在的狀況進入「;要關閉引號和分號來執行命令,您可能會遇到語法錯誤。