最后插入的行号。 [英] last inserted row number.

查看:58
本文介绍了最后插入的行号。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!


i得到了我的结果


1 user0 55

2 user1 53

3 user2 49

4 user2 48

5 user3 47< -------最后插入的行

6 user4 46


如何回显最后插入的行的位置?


结果需要 ;最后插入的行是5!!


谢谢大家!!

解决方案

@canabatz


有很多可能的方法,这取决于你如何存储这些数据。给我们一些更多的信息。另外,最后插入的行不是#6?


1。不太清楚abt问。

2.我们可以使用

展开 | 选择 | Wrap | 行号


之前


count |用户名|出价金额

1 user0 55

2 user2 49

3 user2 48

4 user4 46


之后


count |用户名|出价金额

1 user0 55

2 user2 49

3 user2 48

4 user4 47< - - 最后插入

5 user4 46


出价金额按照bid_amount DESC的顺序排列,因此最后插入金额47,金额46计数为4,插入金额47后,金额46降至5计数!


即时显示给用户的出价金额是多少! ,这就是我想要的。


感谢你的重播:)


i希望你现在让我好起来。

hi all !!

i got my results like that

1 user0 55
2 user1 53
3 user2 49
4 user2 48
5 user3 47 <------- last inserted row
6 user4 46

how do i get to echo the position of the last inserted row?

the result need to be "last inserted row is 5"!!


thank you all!!

解决方案

@canabatz
There are many possible ways, it depends on how you''re storing this data. Give us some more information. Also, wouldn''t the last inserted row by #6 ?


1. not very much clear abt asking.
2. we could get just inserted using

Expand|Select|Wrap|Line Numbers


before

count | username | bid-amount
1 user0 55
2 user2 49
3 user2 48
4 user4 46

after

count | username | bid-amount
1 user0 55
2 user2 49
3 user2 48
4 user4 47 <--- last inserted
5 user4 46


bid amount going with order by bid_amount DESC ,so amount 47 was last inserted ,the amount 46 count was 4 ,and after the insert of amount 47 ,amount 46 go down to 5 count!!

im displaying to the user in what place is bid amount are!! ,and this is what im trying to get.

thanks for your replay :)

i hope you got me better now.


这篇关于最后插入的行号。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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