使用单个varchar字段获取表中的最后一行。 [英] Fetching the last row in a table with a single varchar field.

查看:63
本文介绍了使用单个varchar字段获取表中的最后一行。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以告诉我,如何从表中获取最后一条记录。

在该表中只有一个varchar类型列,如名称

解决方案

你对'lasr record`是什么意思?


你好,

最后记录意味着新插入的记录。

我们应该只获得那个记录。并且该记录应该通过使用select语句而不是insert语句来获得。


为什么没有另一个数据类型为DATETIME的字段?

hi can anybody tell, how can i fetch last record from table.
In that table only one varchar type column is there like name

解决方案

What do you mean by `lasr record`?


Hi,
Last record means newly inserted record.
and we should get that record only not more than that .And that record should get by using select statement not the insert statement.


Why not have another field of data type DATETIME?


这篇关于使用单个varchar字段获取表中的最后一行。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆