Re: [SQL ]
※ 引述《ghostleader (小居批~)》之銘言:
: 我想請問一下這段程式碼哪裡錯誤呢??
: insert into register (name,sex,birth,id,school,eat,phone,mobile,add,email)
保留字
: values=("雷風臨","男生","1992/2/29","A129622821","好保中學","雜食","02-12345678
多餘
: ", "0963080800","科科科科科科科科科科科科科科科科科科科科科科科","XDrz@OGC.net"
: );
: 因為她不讓我執行
: SQL 語法:
: insert into register (name,sex,birth,id,school,eat,phone,mobile,add,email)
: values("雷風臨","男生","1992/2/29","A129622821","好保中學","雜食","02-1234567
: 8", "0963080800","科科科科科科科科科科科科科科科科科科科科科科科","XDrz@OGC.ne
: t");
: MySQL 傳回: 說明文件
: #1064 - You have an error in your SQL syntax; check the manual that
: corresponds to your MySQL server version for the right syntax to use near
: 'add,email) values=("é // 後面亂碼
^^^^
這邊有講錯誤的地方
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.113.158.15
※ 編輯: dinos 來自: 140.113.158.15 (06/25 19:27)
討論串 (同標題文章)
Database 近期熱門文章
PTT數位生活區 即時熱門文章