【发布时间】:2019-07-22 17:15:26
【问题描述】:
SQL> create table customer(
2 customer_ID number(3) primary key,
3 customer_Name varchar2(26),
4 contact_Name varchar2(26),
5 phone number(10));
Table created.
SQL> desc customer
Name Null? Type
----------------------------------------- -------- ----------------------------
CUSTOMER_ID NOT NULL NUMBER(3)
CUSTOMER_NAME VARCHAR2(26)
CONTACT_NAME VARCHAR2(26)
PHONE NUMBER(10)
SQL> insert into customer
(customer_ID, customer_Name, contact_Name, phone)
values (23, 'Dave's Sub Shop', 'David Logan', 555-333-4545);
ERROR:
ORA-01756: quoted string not properly terminated
谁能帮我解释一下这个错误?
【问题讨论】:
-
它是:'Dave's Sub Shop' 你在引用的字符串中有一个引号,导致它认为 Dave 是你试图为 customer_Name 插入的内容
标签: sql string oracle sql-insert create-table