在SQL语句中,output可以作为返回值来使用, 1.我们先看这个存储过程 代码: 1 set ANSI_NULLS ON 2 set QUOTED_IDENTIFIER ON 3 go 4 5 --added by hendyzhu 验证身份证的唯一性,排除同一个人有多个居民健康档案 6 --2010-5-28 7 create procedure [dbo].[DistinctSame] 8 ( 9 @ID varchar(20), 10 @count int outpu…
1.concat CONCAT(字串1, 字串2, 字串3, ...): 将字串1.字串2.字串3,等字串连在一起. 例如: Geography 表格 region_name store_name East Boston East New York West Los Angeles West San Diego 例子1: MySQL/Oracle: SELECT CONCAT(region_name,store_name)…