The sql.sql file in Linux system has a large number of data records, sometimes including ID records. Sometimes we need to replace these ID records. How to replace them quickly? Today, Xiaobian tells everyone how to solve this problem. .
Solution:
When a field in a database (such as ID) is an integer, then when the newly inserted data required from the current maximum of the total existing database The value is incremented by 1 to start the alignment.
The current production database has a maximum id of 150, so you need to start from 151 when you go online. Of course, you can use sequence auto increment.
Here is the manual modification of sql, save the following content to online.sql
insert into ct values(1, 'sss', 2, 4);
Insert into ct values(1, 'sss', 2, 4);
insert into ct values(1, 'sss', 2, 4);
insert into ct values(1 , 'sss', 2, 4);
insert into ct values(1, 'sss', 2, 4);
insert into ct values(1, 'sss', 2 , 4);
insert into ct values(1, 'sss', 2, 4);
Open files with vim
Execute the following command in command mode Get it
:let n=151
LVM is a logical volume management, is a mechanism for disk partition management under Linux, I beli
Linux Container container is a kernel virtualization technology, referred to as LXC, is a lightweigh
In Linux system, if you want Vim editor to play a bigger role, you need to install some plug-ins for
Linux system different files, have different permissions. This is for security considerations when s
Git Workflow and Basic Operations in Linux
Ubuntu disables the shutdown confirmation box step
Ubuntu notebook energy-saving three tips
Linux system hardware routing forwarding principle
What should I do if the Linux system formats the partition and prompts Could not start /dev?
How to use the sleep command on Linux
How to embed all LaTex fonts in PDF files under Linux
Techniques for setting up multiple network cards as virtual network cards under Linux
How to make Live USB under Linux?
Linux command line in the network speed test method detailed
How to customize the History output format for Linux systems
Windows7 operating system startup troubleshooting method
Hidden files are no longer difficult to teach you to hide files in win xp
Learn 20 special tips of Win XP (1)
Windows XP system realizes 1 second shutdown
Advance experience Put on the gorgeous coat of Windows 8 for Win7
Win 8 performance improvement methods
Win8 screen keyboard how to open Win8 keyboard broken emergency measures
Teach you how to turn off the sound of the small 7 system frequently reading the disk