Ask a Question related to Macromedia ColdFusion, Design and Development.
-
mocax #1
forcing string datatype in query of queries
In a query, I have a column of varchar type and the strings consist of numbers
in the form "00000099999"
When I do a query of queries on the result, the column becomes "99999" with
the leading zeroes truncated.
Is there a way to force it to display the correct datatype?
mocax Guest
-
2 queries to 1 query
Hello, Can somebody help me to combine these two queries into one query. <cfquery datasource="#DATAS#" name="getMainNav"> SELECT * FROM... -
Query of Queries on query New type query
In CF5 we have a page that creates a query, using queryNew and querySetCell and the like, we then used dbtype="query" and gave it's name so we could... -
Maintain query string and somehow auto refresh a pagewith that string intact
I have a drill down where on page one the user selects criteria to narrow down the search for a speicific group of employees(like all hired between... -
Clob Datatype Cast for Queries on Query
Hi , I am getting a Query of Queries runtime error when I try to do a QoQ on query which has a column with the clob datatype. The original query is... -
SQL Server query with Image datatype
Hi Folks Can anyone please tell me how I can safely run an SQL query on SQL 2000 via a Perl which includes a field of Image datatype which holds... -
Iceborer #2
Re: forcing string datatype in query of queries
Will it work if you use CAST to a varchar in the QofQ?
Iceborer Guest
-
mocax #3
Re: forcing string datatype in query of queries
cast() and convert() don't work in QofQs.....
At least in MX6.1
No idea about MX7
mocax Guest
-
vkunirs #4
Re: forcing string datatype in query of queries
Hi
Is this problem is with the query of queries only?
actually i have tried with a single query and it is displayintg the value as
it is in the database onyl.
<cfquery datasource="test" name="s">
select * from test1
</cfquery>
<cfoutput query="s">
#test#
</cfoutput>
this dispaying the value as : 00009999
vkunirs Guest
-
jonwrob #5
Re: forcing string datatype in query of queries
The only solution to this I've been able to come up with is to create the query
with QueryNew and then add a row with default values of the correct type.
After adding the rest of the data, you can delete first row.
It's sloppy I know, but it's all my brain, with it's limited capacity for
parallel thinking has managed to provide me. If anyone has a better idea, I'd
love to hear it.
JR
jonwrob Guest
-
eastinq #6
Re: forcing string datatype in query of queries
In your query of query, you can try tricking it into thinking it is a string by concatenating an empty string value.
SELECT COL1 + '' AS COL1
eastinq Guest



Reply With Quote

