ASP Hosting sale!
Double disk space and transfer for FREE!
Limited time offer! Act Now!

aspdev | articles | tutorials | forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Is there a T-SQL equivalent to Mid() in Access/VBScript?

 
Post new topic   Reply to topic    ASPdev.org Forum Index -> SQL Programming (MS SQL Server, MS Access, MySQL)
View previous topic :: View next topic  
Author Message
Vince



Joined: 30 Nov 2004
Posts: 1

PostPosted: Tue Nov 30, 2004 11:13 am    Post subject: Is there a T-SQL equivalent to Mid() in Access/VBScript? Reply with quote

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
View user's profile Send private message
paul



Joined: 11 Oct 2004
Posts: 128

PostPosted: Tue Nov 30, 2004 1:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ASPdev.org Forum Index -> SQL Programming (MS SQL Server, MS Access, MySQL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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

SQL Tutorial