帮助选择上次插入的记录 [英] Help on select a Last Inserted Record

查看:44
本文介绍了帮助选择上次插入的记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想知道如何选择最后插入的记录,这是主键不是整数。


我的表


ramstr(小学)----姓名 - 服务


XTC01 -------拉吉夫---服务


XTC02 ------ kumar - 服务


这里我想选择最后插入的记录。(XTC02 ---- - 库玛 - 服务)。


有任何想法请。


谢谢。

RajivGandhi。

Hi to all,
I want to know how to select a last inserted record which is the primary key is not an integer.

my table

ramstr(Primary)----name--service

XTC01-------Rajiv---service

XTC02------kumar--Service

Here i want to select the last inserted record.(XTC02------kumar--Service).

Is any idea Please.

Thanks.
RajivGandhi.

推荐答案


大家好,

我想知道如何选择最后插入的记录哪个是主键不是整数。


我的表


ramstr(主要)----名称 - 服务


XTC01 -------拉吉夫---服务


XTC02 ------ kumar - 服务


这里我想选择最后插入的记录。(XTC02 ------ kumar - 服务)。


有任何想法请。


谢谢。

RajivGandhi。
Hi to all,
I want to know how to select a last inserted record which is the primary key is not an integer.

my table

ramstr(Primary)----name--service

XTC01-------Rajiv---service

XTC02------kumar--Service

Here i want to select the last inserted record.(XTC02------kumar--Service).

Is any idea Please.

Thanks.
RajivGandhi.



尝试取MAX(主键列)并检查它是否有效??

Try to take the MAX(primary key column) and check if it works??

展开 | 选择 | Wrap | 行号



尝试取MAX(主键列)并检查它是否有效??
展开 | 选择 | Wrap | 行号



它是'工作正常。谢谢你这么快的回复。


问候

RajivGandhi
It''s working fine.Thank You for such a fast reply.

Regards
RajivGandhi



你欢迎:)


Amit

You are Welcome :)

Amit


这篇关于帮助选择上次插入的记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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