当点击查询后兼容所有条件
在进行多条件查询时可以
CREATE PROC Getcourse
AS
@Condition
SELECT * FROM course
WHERE (c# LIKE’%’+@Condition+’%’ OR cname LIKE’%’+@Condition+’%’ OR t# LIKE’%’+@Condition+’%’)
当点击查询后兼容所有条件
在进行多条件查询时可以
CREATE PROC Getcourse
AS
@Condition
SELECT * FROM course
WHERE (c# LIKE’%’+@Condition+’%’ OR cname LIKE’%’+@Condition+’%’ OR t# LIKE’%’+@Condition+’%’)