Home > Database > Mysql Tutorial > body text

What is the result of concatenating server_id and UUID in MySQL?

WBOY
Release: 2023-09-17 18:29:02
forward
1313 people have browsed it

在 MySQL 中连接 server_id 和 UUID 会产生什么结果?

Yes, you can easily connect the server ID and UUID. The syntax is as follows:

SELECT CONCAT(@@ server_id,UUID())
Copy after login

In the above code, we use @@server_id to get the value of server_id. @@server_id is a system-defined variable. Now let us take a look at the query statement

mysql> SELECT CONCAT(@@server_id, UUID()) AS ServerUUIDDemo;
Copy after login

The following is the output showing the concatenation result of server_id and UUID

+---------------------------------------+
| ServerUUIDDemo                        |
+---------------------------------------+
| 14d16521c-3161-11e9-9ed7-78843ce8de7e |
+---------------------------------------+
1 row in set (0.00 sec)
Copy after login

The above is the detailed content of What is the result of concatenating server_id and UUID in MySQL?. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!