SQL Syntax Question

J

J

I have an SQL select statement that selects fields from a table and renames
them depending on certain criteria. The datatype of the original field is a
memo (adLongVarWchar) 65535. When the fields gets renamed, the type and
size become adVarWChar (255). This results in my data being truncated and
it contains unreadable control characters if the size of the data exceeds
255.

Can a size be specified in the AS clause?

Basic Syntax:

SELECT *, IIF(INSTR(`Description`, '*OPTION') > 0, `Description`)
AS `OPTIONDesc`, IIF(INSTR(`Description`,
'*OPTION') = 0, `Description`) AS `OPTIONNonDesc`
FROM `EstimateSpecs`
ORDER BY `Order`

I am working in a dataenvironment in vb6.

Thanks for any help with this!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top