Notice
Recent Posts
Recent Comments
Link
투케이2K
81. (MYSQL/SQL) UUID 사용해 랜덤 고유값 출력 실시 본문
[개발 환경 설정]
개발 툴 : Heidi
개발 언어 : Mysql

[소스 코드]
/*
[요약 설명]
1. UUID : Mysql 에서 랜덤 고유값을 출력해줍니다
2. LEFT : 왼쪽 기준으로 자릿수 제한 출력을해줍니다
*/
SELECT UUID() AS 전체랜덤값,
LEFT(UUID(), 8) AS 제한랜덤값;
[결과 출력]

반응형
'MySqlDB' 카테고리의 다른 글
Comments