Go Back   Computer Juice > Computer Software > Web Design, Hosting & SEO
Register Points Site Spy New Posts Donate Unanswered Posts Search Forum Rules


Reply
 
LinkBack Thread Tools
  #1  
Old 1st Apr 2007, 04:57 PM
No Avatar
Chase  disclosed
New Member Group
 
Chase is offline
 
Join Date: 1st Apr 2007
Last Online: 1st Apr 2007 04:57 PM
Posts: 1
iTrader: (0)
Chase is on a distinguished road
Default SQL Select?

SELECT * FROM table WHERE FIELD_ONE = '1' AND FIELD_ONE = '1'I need this to print out 2 rows even though they are the same, it currently only prints one. how would you do this?
Digg this postDel.icio.us this postReddit this post Stumble this postFacebook this post
Reply With Quote

  #2  
Old 1st Apr 2007, 05:47 PM
No Avatar
New Member Group
 
Harold L is offline
 
Join Date: 1st Apr 2007
Last Online: 1st Apr 2007 05:47 PM
Posts: 1
iTrader: (0)
Harold L is on a distinguished road
Default SQL Select?

The two parts of the AND are redundant...SELECT * FROM table WHERE FIELD_ONE = '1'FETCH FIRST 2 ROWS ONLY;Or just open a cursor in your application and FETCH twice before closing the cursor.
Digg this postDel.icio.us this postReddit this post Stumble this postFacebook this post
Reply With Quote

Please support this forum, donate towards our running costs.
Reply

Thread Tools

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How To Select A Motherboard icu222much CPUs, Motherboards & RAM 5 9th Jun 2008 01:10 PM
Please can you help me select an appropriate server for my small business vishy01234 General Hardware Chat 3 2nd Jun 2008 06:04 PM
Cannot select many items SirZach666 Windows Operating Systems 1 17th Dec 2007 06:05 AM
How to incorporate bullets in a select... just2rup Web Design, Hosting & SEO 1 18th Mar 2007 10:06 PM
how do I select a digital camera (camera or gypsy68 Digital Imaging & Printers 4 18th Mar 2007 05:02 PM


Copyright ©2006 - 2008 Computer Juice.

Powered by vBulletin® Copyright ©2000 - 2008 Jelsoft Enterprises Ltd. SEO by vBSEO ©2008, Crawlability, Inc.