|
||||||
| Database & Database Programming MySQL, Oracle, SQL, PL/SQL, ABAP, Smart Forms, and other databases and languages. A database is an organized body of related information used in many websites (including CC). |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||||
|
You can do a ORDER BY to get the top ten combined with limit
SELECT * FROM tbl ORDER BY clm_num LIMIT 0,10; Do to in reverse order do SELECT * FROM tbl ORDER BY clm_num LIMIT 0,10 DESC; // Descending Order You can also ORDER by multiple columns in your table SELECT * FROM tbl ORDER BY clm_num, clm_name LIMIT 0,10; If the column is character it will be sorted alphabetical.
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages! |
| Sponsored Links |
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to calculate the number of pixels in a polygon | extreme | Java Help | 5 | 04-17-2007 11:34 AM |
| Number Cloning | Ronin | Java Help | 3 | 12-21-2006 08:23 AM |
| I need to generate a random number in PHP | dirkfirst | PHP Forum | 7 | 07-05-2006 10:58 PM |
| Number of Lines on a RichText Box | Lop | Managed C++ | 3 | 06-16-2006 06:19 PM |
| Number of files and directories in folder | dirkfirst | PHP Forum | 4 | 05-30-2006 11:06 AM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |
Goal: 100,000 Posts
Complete: 98%