Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding more rows to a select
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Divers
Thread ID:
00554214
Message ID:
00554215
Vues:
9
This message has been marked as the solution to the initial question of the thread.
You can use union
SELECT dtDate FROM timesheets
UNION ALL
SELECT GETDATE()
>In a stored procedure, is there a way to add more rows to the result of a select statement?
>
>Something like this..
>SELECT dtDate FROM timesheets
>INSERT INTO ????? (dtDate) VALUES(GETDATE())
>
>The purpuse of this result set is to get a list of dates for read only purposes.
>
>Thanks,
>
>Chris
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform