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 '%字符%'
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 '%字符%'