dbTalk Databases Forums  

select cast help !!!

comp.database.ms-sqlserver comp.database.ms-sqlserver


Discuss select cast help !!! in the comp.database.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
T.M.
 
Posts: n/a

Default select cast help !!! - 01-25-2006 , 07:34 PM






What is the correct syntax for querying the first 20 characters of a
memo field?

I'm trying to
SELECT CAST (varchar(20) fieldname) as newfieldname
and i get a bunch of errors

Can someone please help me?

MS Access DB used with ColdFusion

Thanks


Reply With Quote
  #2  
Old   
scott.x.lu (Offline)
Junior Member
 
Posts: 5
Join Date: Jun 2006

Default 07-05-2006 , 01:26 AM






hi,
Cast should be the following:
CAST (fieldname as varchar(20)) as fieldname

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.