易截截图软件、单文件、免安装、纯绿色、仅160KB

SQL like 问题

select ID,MainFunctionID,MainFunction,MainID,MainIDDescription,ModeID,ActionPageName,ActionBtnName,Description,IsActive,ModifyID,ModifyDate 
    from T_LogWriteSet  where MainID = ''' AND Description Like '%'%'

请问 AND Description Like '%'%'  最后面一个%为什么没用呢?
哪里没用

select ID,MainFunctionID,MainFunction,MainID,MainIDDescription,ModeID,ActionPageName,ActionBtnName,Description,IsActive,ModifyID,ModifyDate 
    from T_LogWriteSet  where MainID = ''' AND Description Like 'g'g'

Incorrect syntax near 'g'.

SQL code:

if object_id('tb') is not null drop table tb
go

create table tb(id int identity(1,1),name varchar(10))
insert tb select
'' union all select
'1' union all select
'1''2' union all select
'9'''
/*
select * from tb
id name
----------- ----------
1
2 1
3 1'2
4 9'

(4 行受影响)
*/
select * from tb where name like '%''%'

id name
----------- ----------
3 1'2
4 9'

(2 行受影响)




???

SQL code:
select ID,MainFunctionID,


相关问答:

如何用c#,sql2000 开发c/s下的工作流?

本人c#新手 可是要求要用c# ,sql2000开发c/s的工作流,一头雾水,请大家帮忙帮忙,给点思路,说的约具体越好,我也好往那个方面去学习
http://www.hxzi.com/view/61402.html
B/S版的,基本思想应该差不多的。。 ......

总会碰到怪的问题,sql问题

sql2005
select *from v_ddxx where d_sfsc='0' and (g_ssbm='1001' or g_ssbm='1002') and (xxf>0 and  xxfwzf <>0 ),执行速度慢的要死,但是如果把(xxf>0 and  ......

sql 问题

DateTime startTime=DateTime(em_1.Text)
DateTime endTime=DateTime(em_2.Text)

string sql
sql = dw_1.GetSQLSelect()+"Where (StartTime> '"+startTime+"') and (EndTime ......

求一SQL语句

原数据

商品    原价    打折方式1  折扣1    打折方式2  折扣2
笔记本  10000  NULL        0      NULL&nb ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号