House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

select all null fields?

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Tony Weeg
04/28/2004 10:38 AM

is there a way to select all fields from a table where the field is not null...something like... select * from myTable where all columns are not null or something to that effect? thanks! ...tony tony weeg senior web applications architect navtrak, inc. www.navtrak.net tony@navtrak.net 410.548.2337

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Josh
04/28/2004 10:47 AM

to my knowledge,  you will have to do a where cluase for each column SELECT *    FROM myTable WHERE col1 is not NULL       AND col2 is not NULL       AND col3 is not NULL etc.etc. hope that helps! -Josh --- Exciteworks -- expert hosting for less! http://exciteworks.com Tony Weeg wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Tony Weeg
04/28/2004 10:49 AM

yeah, I knew that...kinda wondering if there was a blind way to do it... I have a major join with some views etc, in our new crm system, that im integrating into our backend ... so what my thinking was, rather than weed through all the columns, I could get the ones that arent null...those would be the ones I cared about :) make sense? so, I guess not... later. to my knowledge,  you will have to do a where cluase for each column SELECT *    FROM myTable WHERE col1 is not NULL       AND col2 is not NULL       AND col3 is not NULL etc.etc. hope that helps! -Josh --- Exciteworks -- expert hosting for less! http://exciteworks.com Tony Weeg wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Josh
04/28/2004 11:24 PM

you could always loop through the columnlist and generate the query dynamically. -Josh Tony Weeg wrote: ----- Excess quoted text cut - see Original Post for more -----


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 24, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
     1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31     

Designer, Developer and mobile workflow conference