View previous topic :: View next topic |
Author |
Message |
Vince
Joined: 30 Nov 2004 Posts: 1
|
Posted: Tue Nov 30, 2004 11:13 am Post subject: Is there a T-SQL equivalent to Mid() in Access/VBScript? |
|
|
Hi,
I'm looking for T-SQL equivalent to Mid() function in Access SQL and VBscript? Is there a similar SQL Server function?
Thanks
Vince |
|
Back to top |
|
|
paul
Joined: 11 Oct 2004 Posts: 128
|
Posted: Tue Nov 30, 2004 1:38 pm Post subject: |
|
|
Hi Vince,
T-SQL has a function called SUBSTRING which does what MID VBScript function does. Just use it like in the example below:
Code: |
SELECT SUBSTRING(Column1,5,10)
|
Thanks,
Paul _________________ World Countries | Survival Skills |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group
|