sql="select * from [User] where Username like ‘%Username%‘ or Xuehao like '%Xuehao%' or Department like '%Department%' Biyear like '%Biyear%'order by UserID desc "
sql="select * from [User] where Username like ‘%"&Username&"%‘ or Xuehao like '%"&Xuehao&"%' or Department like '%"&Department&"%' Biyear like '%"&Biyear&"%'order by UserID desc "
sql="select * from [User] where Username like '%"&Username&"%' or Xuehao like '%"&Xuehao&"%' or Department like '%"&Department&"%' Biyear like '%"&Biyear&"%'order by UserID desc "
注意中英文的"'"和"’"
错误类型:
Microsoft JET Database Engine (0x80040E14)
语法错误 (操作符丢失) 在查询表达式 'Username like '%%' or Xuehao like '%23%' or Department like '%%' Biyear like '%%'' 中。