【问题标题】:What does the '@' mean in an SQL stored procedure? [duplicate]SQL 存储过程中的“@”是什么意思? [复制]
【发布时间】:2014-03-04 19:51:11
【问题描述】:

存储过程中的某些字段前面有一个“@”符号。这是什么意思?

忽略字段和数据本身。

, cast(hi.date_closed as date) hiclose
, @helloclose:=cast(ifnull(audit.date_created,hello.date_entered)
, cast(@hi-INTERVAL WEEKDAY(@hiclose)DAY as datetime) himonclose
, @oppentered:=cast(opp.date_entered - interval 5 hour as datetime) hicreate
, cast(@oppentered - INTERVAL WEEKDAY(@oppentered)DAY as datetime) himoncreate

【问题讨论】:

    标签: mysql procedure


    【解决方案1】:

    @ 符号表示它是通过参数传入的变量。

    谷歌:

    What does the "@" symbol do in SQL?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-11-16
      • 1970-01-01
      • 1970-01-01
      • 2020-10-27
      • 2015-07-15
      • 2018-07-17
      • 2012-08-13
      • 2020-12-30
      相关资源
      最近更新 更多