Converting a field from int to varchar during query
From: Jig Bhakta (JigBhakta_at_discussions.microsoft.com)
Date: 02/02/05
- Next message: Hugo Kornelis: "Re: copy table structure"
- Previous message: Hugo Kornelis: "Re: Union Query syntax"
- Next in thread: Hugo Kornelis: "Re: Converting a field from int to varchar during query"
- Reply: Hugo Kornelis: "Re: Converting a field from int to varchar during query"
- Reply: Steve Kass: "Re: Converting a field from int to varchar during query"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 2 Feb 2005 13:07:04 -0800
I have a query where I am writing the following statement:
select * from ......
where table1.field1 = table2.field2
....
....
....
field2 is a varchar field and field1 is an int field. Field2 contains the
data mapping data for field1 and also other unrelated data as character
strings.
How do I run this query without getting the error - "Syntax error converting
the varchar value 'XXXX' to a column of data type int."
Thanks,
Jignesh.
- Next message: Hugo Kornelis: "Re: copy table structure"
- Previous message: Hugo Kornelis: "Re: Union Query syntax"
- Next in thread: Hugo Kornelis: "Re: Converting a field from int to varchar during query"
- Reply: Hugo Kornelis: "Re: Converting a field from int to varchar during query"
- Reply: Steve Kass: "Re: Converting a field from int to varchar during query"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|