Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
TAS
Yak Posting Veteran
65 Posts |
Posted - 2004-04-15 : 11:12:58
|
| Select decPaid,vchrType, sdtmDate from tblFee Where vchrNumEnroll=@EnrollMy question is: How to output decPaid,vchrType and sdtmDate into different variable? I need to use these output values in program. |
|
|
Aiby
Yak Posting Veteran
71 Posts |
Posted - 2004-04-15 : 11:46:05
|
| can you explain it little more clearly?! this part >> "into different variable" what do you exacly meaned! |
 |
|
|
TAS
Yak Posting Veteran
65 Posts |
Posted - 2004-04-15 : 11:52:36
|
| I want to get return value from decPaid,vchrType, sdtmDate. |
 |
|
|
Amethystium
Aged Yak Warrior
701 Posts |
Posted - 2004-04-15 : 11:57:46
|
| [code]declare @decPaid moneydeclare @vchrType varchar(50)declare @sdtmDate datetimeSelect @decPaid = decPaid, @vchrType = vchrType @sdtmDate = sdtmDatefrom tblFee Where vchrNumEnroll=@Enroll[/code]but you have to make sure that only single values are inserted in to the variables.select________________Make love not war! |
 |
|
|
TAS
Yak Posting Veteran
65 Posts |
Posted - 2004-04-15 : 12:14:38
|
| Amethystium:It works fine.Thanks! |
 |
|
|
|
|
|