mune
V2EX  ›  PHP

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

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


    select NOW() as `t`;

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