如何在2条记录之间插入新记录? [英] how to insert new record between 2 record?

查看:77
本文介绍了如何在2条记录之间插入新记录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想在
之间插入新行 现有2行
编写查询以插入新行
现有行之间

例子:record ram
记录ravi
我想在ram和ravi之间的新记录之间插入

解决方案

新行根据数据库表中的可用空间存储.您不能在任何特定位置插入行.但是,您可以使用ORDER BY sql关键字对任何查询的结果进行排序.


hi
I want to insert a new row between
existing 2 rows
write a query to insert new row
between existing row

example :record ram
record ravi
I want to insert between new record between ram and ravi

解决方案

New rows are stored according to the available space in the database table. You cannot insert rows at any specific position. However, you can have the results of any query sorted with the ORDER BY sql keyword.


这篇关于如何在2条记录之间插入新记录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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