db2获取第一条数据

问题描述:db2 怎么获取第一条数据

解决方案:

select * from table fetch first 1 rows only

如果是取前三条,把数字修改成3即可