mune
V2EX  ›  PHP

求解释这个 sql : select uuid() as uuid 。

  •  
  •   mune · Oct 23, 2017 · 3636 views
    This topic created in 3303 days ago, the information mentioned may be changed or developed.
    4 replies  •  2017-10-23 15:53:24 +08:00
    holyghost
    holyghost
    Oct 23, 2017
    1
    和

    select NOW() as `t`;

    是一样的
    sunsh2017
    sunsh2017
    Oct 23, 2017 via Android
    2
    pg 才有 mysql 没有
    neoblackcap
    neoblackcap
    Oct 23, 2017
    3
    @sunsh2017 事实证明 MYSQL 5.7 有
    rozbo
    rozbo
    Oct 23, 2017
    4
    为了快速生成一个 uuid,因为 php 没有很方便的方式生成。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1600 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 12:34 · PVG 20:34 · LAX 04:34 · JFK 07:34
    ♥ Do have faith in what you're doing.