如何从数据库中获取最新更新的coloum值到asp.net中的标签 [英] how to fetch latest updated coloum values from database to label in asp.net
本文介绍了如何从数据库中获取最新更新的coloum值到asp.net中的标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
伙计们请帮助我,急需给我发送代码。
guys please help me its urgent kindly send me code for this.
推荐答案
如果你有主键那么改变你的查询,而不是
If You have Primary key then Change your query, instead of
select * from emp
do
do
select * from emp where iD = (select MAX(iD) from emp)
假设iD是您的主键,每次插入后都会继续增加。
Assuming that iD is your primary key and keeps on increasing after every insert.
这篇关于如何从数据库中获取最新更新的coloum值到asp.net中的标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文