欢迎光临
我们一直在努力

Sqlserver 常用命令

--触发器
BEGIN
    IF
        UPDATE ( sale_order_line_id ) BEGIN
            UPDATE stock_move_line 
            SET contract = ( SELECT origin FROM sale_order WHERE ID = ( SELECT sale_order_id FROM sale_order_line WHERE ID = inserted.sale_order_line_id ) )
        FROM
            inserted 
        WHERE
            stock_move_line.ID = inserted.ID 
            AND
            inserted.sale_order_line_id > 0
    END
END

--替换函数
REPLACE('你好啊', '啊', '');

--日期
( nvarchar ( 80 ), a.date, 11 ) AS 日期;--转换为日期为 23/01/13

 

赞(0) 打赏
未经允许不得转载:豪~豪的个人中心 » Sqlserver 常用命令

评论 1

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #1

    Pretty component of content. I just stumbled upon your website and in accession capital to assert that I acquire actually loved account your weblog posts.

    Any way I’ll be subscribing on your augment or even I fulfillment you get right of entry to persistently fast.

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏