SQL语句中超出了最大字符数

时间:2017-06-08 16:54:56

标签: mysql sql character

所以我试图运行这个示例代码来填充表的行,然后根据某些条件从表中选择数据。但是,当我运行代码时,我收到一条错误消息,“SQL语句中超出了最大字符数”。我相信将数据填入行中工作正常,但是在选择数据时,似乎存在一些错误。 知道这里出了什么问题吗?这是SQL代码:

    insert into Emp902_Info
    (Firstname, Lastname, Title, Age, Salary) 
    values ('Jonie', 'Weber', 'Secretary', 28, 19500.0), ('Potsy', 'Weber', 
    'Programmer', 32, 45300.0), ('Dirk', 'Smith', 'Programmer II', 45, 
    75020.0),('Smirk', 'David', 'Designer I', 40, 75000.0), ('Dunkirk',
    'Plane','Designer II', 84, 99080.0), ('Polly', 'Sweet', 'HR', 35, 
    72020.0);
    select * from Emp9011_Info;
    select * from Emp9011_Info 
    where Salary > 30000;
    select Firstname, Lastname from Emp902_Info
    where Age < 30;
    select Firstname, Lastname, Salary from Emp902_Info
    where Title LIKE '%Programmer%';
    select * from Emp902_Info
    where Lastname LIKE '%ebe%';
    select Firstname from Emp902_Info
    where Firstname ='Potsy';
    select * from Emp902_Info
    where Age > 80;
    select * from Emp902_Info
    where Lastname LIKE '%ith';

0 个答案:

没有答案