This article uses an example to describe how MySQL generates random numbers and concatenates strings. Share with you for your reference, the details are as follows: Methods used: SQL statement example: Copy the code as follows: UPDATE user set reg_ip = concat(floor(RAND() * 250),'.',floor(RAND() * 250),'.',floor(RAND() * 250),'.',floor(RAND() * 250)) where username = 'xxx' PS: Here are two commonly used SQL online tools for your reference (including SQL statement usage instructions): SQL online compression/formatting tool: SQL code online formatting and beautification tool: In addition: I would like to recommend an online random number tool for your reference: Online random number/string generation tool: Readers who are interested in more MySQL-related content can check out the following topics: "Summary of MySQL Common Functions", "Summary of MySQL Log Operation Skills", "Summary of MySQL Transaction Operation Skills", "Summary of MySQL Stored Procedure Skills" and "Summary of MySQL Database Lock-Related Skills". I hope this article will be helpful to everyone's MySQL database design. You may also be interested in:
|
<<: Mini Programs enable product attribute selection or specification selection
>>: How to manually build a new image with docker
This article is based on the Free Code Camp Basic...
Table of contents introduce Prepare Download syst...
BinLog BinLog is a binary log that records all da...
It is not possible to use width and height directl...
Original article, please indicate the author and ...
This tutorial shares the installation and configu...
Table of contents 1. Script vim environment 2. Ho...
mysql installer community 8.0.16.0 installation g...
Note 1: The entire background in the above pictur...
Download the Java Development Kit jdk The downloa...
content Use scaffolding to quickly build a node p...
Operating system: Win7 64-bit Ultimate Edition My...
Optimizing large amounts of database data is a hu...
Table of contents Modify the repository source st...
Use the Linux chmod command to control who can ac...