|
Wersja 436, 439 bytes
(wprowadzona przez marek, 17 years temu)
|
|
re #111 - merged with latest trunk
|
| Line | |
|---|
| 1 |
|
|---|
| 2 | SET ANSI_NULLS ON
|
|---|
| 3 | GO
|
|---|
| 4 | SET QUOTED_IDENTIFIER ON
|
|---|
| 5 | GO
|
|---|
| 6 |
|
|---|
| 7 | ALTER function [dbo].[podajEmisje]
|
|---|
| 8 | (
|
|---|
| 9 | @reklamaId int
|
|---|
| 10 | )
|
|---|
| 11 | returns nvarchar(1024)
|
|---|
| 12 | as
|
|---|
| 13 | begin
|
|---|
| 14 | declare @emisje nvarchar(1024)
|
|---|
| 15 |
|
|---|
| 16 | select
|
|---|
| 17 | @emisje = coalesce(@emisje + ', ','') + cast([Nr wydania] as nvarchar(4))
|
|---|
| 18 | from dbo.[UKA¯E SIÊ W NR]
|
|---|
| 19 | where reklamaId = @reklamaId
|
|---|
| 20 | order by [Nr wydania]
|
|---|
| 21 |
|
|---|
| 22 | return @emisje
|
|---|
| 23 | end
|
|---|
| 24 | GO
|
|---|
| 25 |
|
|---|
| 26 | SET ANSI_NULLS OFF
|
|---|
| 27 | GO
|
|---|
| 28 | SET QUOTED_IDENTIFIER OFF
|
|---|
| 29 | GO
|
|---|
| 30 |
|
|---|
Notatka: Zobacz
TracBrowser
aby uzyskać więcej informacji.