SQL查询返回
返回头一条信息:
select top 1 * from 表
返回最后一条信息:
select * from 表 where ID IN(select max(ID) from 表)
select top 1 * from 表 order by ID desc
SQL like用法
select * from 表 where 表项 like '%字符%'
转载于:https://blog.51cto.com/sr0517/1405100
SQL查询返回
返回头一条信息:
select top 1 * from 表
返回最后一条信息:
select * from 表 where ID IN(select max(ID) from 表)
select top 1 * from 表 order by ID desc
SQL like用法
select * from 表 where 表项 like '%字符%'
转载于:https://blog.51cto.com/sr0517/1405100