Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24

Thread: Query

  1. #11

    Quote Originally Posted by psyd_1 View Post
    i would not consider UtOkbOlinAO's post as a bad nor lazy.. i guess he's just looking for a simple approach in SQL's field of computing.. and since its not yet there, then maybe someone could push the idea - bring it to the public and say, "hey heroes! here's a new technique in querrying something like 'construct a query that would select all 19 colums pero dili i.explicit ug apil sa query ang column name' "....now that's computing..now that computer science!
    Creating a function to exclude the column to create a dynamic query...... It's very possible. When it comes to real sql, it suppose to be complete.

  2. #12
    Quote Originally Posted by dodie View Post
    Creating a function to exclude the column to create a dynamic query...... It's very possible. When it comes to real sql, it suppose to be complete.
    via function, of course yes...but the point was he (TS) wanted it to be one-lined which i assumed is wala pa ta kahibaw..ang if ever somebody knows it (or might wanna contribute to the computing field solutions to scenarios like this) , then i would say its not LAZY CODE.. and it ain't BAD CODE

  3. #13
    Quote Originally Posted by UtOkbOlinAO View Post
    Hi guys,

    Lets assume nga naa moy isa ka table then with 20 colums..

    how do u construct a query that would select all 19 colums pero dili i.explicit ug apil sa query ang column name...

    in short "select * except a column" how to do this?

    Thanks guys in advance...
    What you should do is to specify all the column names except the column that you don't need.

    This makes your query valid even if new columns are added or if the column order is changed

  4. #14
    Quote Originally Posted by psyd_1 View Post
    i would not consider UtOkbOlinAO's post as a bad nor lazy.. i guess he's just looking for a simple approach in SQL's field of computing.. and since its not yet there, then maybe someone could push the idea - bring it to the public and say, "hey heroes! here's a new technique in querrying something like 'construct a query that would select all 19 colums pero dili i.explicit ug apil sa query ang column name' "....now that's computing..now that computer science!
    No, this is not computer science. Computer science and software engineering encourages robust code and correct practices.

    You can, however, write a script that generates the correct SQL for you. That's another topic though...

  5. #15
    Quote Originally Posted by simoncpu View Post
    No, this is not computer science. Computer science and software engineering encourages robust code and correct practices.

    You can, however, write a script that generates the correct SQL for you. That's another topic though...
    i would still say is computer science..it still digs into the notion of "a sequence of instructions that repeats either a specified number of times or until a particular condition is met"...simply computing..

    computer science also not just sits on robust code and correct practices..as on my understanding computer science also deals with new fields of computing, new methods, way of solving probs...i guess this is the thin line between software engineering and computer science itself..

    so i would still say the TS's prob is still valid ( sticking to a one-liner script, not via functions )

  6. #16
    Quote Originally Posted by psyd_1 View Post
    i would still say is computer science..it still digs into the notion of "a sequence of instructions that repeats either a specified number of times or until a particular condition is met"...simply computing..

    computer science also not just sits on robust code and correct practices..as on my understanding computer science also deals with new fields of computing, new methods, way of solving probs...i guess this is the thin line between software engineering and computer science itself..

    so i would still say the TS's prob is still valid ( sticking to a one-liner script, not via functions )
    Straw man - Wikipedia, the free encyclopedia

  7. #17
    @utok, naa nani solution?

  8. #18
    i told you i have the solution, but my apology if you saw me too busy lately that might be the reason why you hesitate to remind me. anyway, i'll just leave a scratch paper containing a very short solution at the guard house if i am not able catch you personally. furthermore, i believe this site was block in your work place since last week i guess... hmm... so it doesn't make sense to send you pm.

    have a nice coding!

  9. #19
    Quote Originally Posted by aozora View Post
    @utok, naa nani solution?
    yup, naa nani solution...

    ------------------------------------
    SELECT COLUMN_NAME
    FROM USER_TAB_COLUMNS
    WHERE TABLE_NAME = XTABLE
    AND COLUMN_NAME <> XCOLUMN
    -------------------------------------

    from this QUERY makuha na ang solution ani... kamo na bahala kung unsa inyong paagi...
    Last edited by UtOkbOlinAO; 07-23-2009 at 05:32 PM.

  10. #20
    Quote Originally Posted by UtOkbOlinAO View Post
    inyong paagi...
    hehehe! i believed you get the tricks. feel free to email me if you need some unthinkable stuff.

  11.    Advertisement

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

 
  1. Level-up games related queries... dito lang po
    By alexwafu in forum Networking & Internet
    Replies: 12
    Last Post: 06-10-2006, 07:36 PM
  2. Query on PSP pricing
    By EarlZ in forum Gizmos & Gadgets (Old)
    Replies: 16
    Last Post: 05-30-2006, 07:37 AM
  3. Monitor Power and other queries
    By Jacks in forum Computer Hardware
    Replies: 5
    Last Post: 05-20-2006, 08:42 AM
  4. QUERY ABOUT SATA MOTHERBOARDS
    By yori in forum Computer Hardware
    Replies: 3
    Last Post: 02-04-2006, 08:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top