日期:2014-05-17  浏览次数:20790 次

在access中如何实现 些方法
select id,cnname,t=1 from sw_SolClass_gb where lang=1 order by t asc ,sortid asc


如果在 access中这样写错 

Microsoft JET Database Engine 错误 '80040e10'

至少一个参数没有被指定值。 

便mssql中没问题,请问access中要怎么写

------解决方案--------------------
别说AC数据库了。你任何数据库都不能允许。
select id,cnname,t=1 from sw_SolClass_gb where lang=1 order by t asc ,sortid asc

t=1有这样写的吗???我咋不知道?

试试
select id,cnname from sw_SolClass_gb where lang=1 order by t asc ,sortid asc

------解决方案--------------------
select id,cnname,'1' as t from sw_SolClass_gb where lang=1 order by sortid asc

因为t=1,所以order by t asc无意义