它应该很简单,但它不起作用
SELECT * FROM profile WHERE name LIKE = 'H%';
ERROR 1064 (42000): 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 '= 'H%'' at line 1
表格中的列
SHOW COLUMNS FROM profile;
+-------+-------------------------------------------------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------+-------------------------------------------------------------+------+-----+---------+----------------+
| id | int(10) unsigned | NO | PRI | NULL | auto_increment |
| name | varchar(20) | NO | | NULL | |
| birth | date | YES | | NULL | |
| color | enum('blue','red','green','brown','black','white') | YES | | NULL | |
| foods | set('lutefisk','burrito','curry','eggroll','fadge','pizza') | YES | | NULL | |
| cats | int(11) | YES | | NULL | |
我该怎么办?
答案 0 :(得分:1)
remove = 所以;
org.apache.catalina.ant.DeployTask task = new org.apache.catalina.ant.DeployTask();
task.setUrl("http://localhost:8084/manager");
task.setUsername("managerLogin");
task.setPassword("managerPassword");
task.setPath("/UrlToYourDeploadingProject");
task.setWar(new File("c:/Project.war").getAbsolutePath());
task.execute();
答案 1 :(得分:1)
删除=
Areca 建议。它可以正常工作(没有错误)
但你可以使用不同的选项来实现不同的结果。
%
一个。 SELECT * FROM profile WHERE name LIKE '%H%';
%
。 SELECT * FROM profile WHERE name LIKE '%H%';