This is a discussion on sort record by alter statement within the Database Support forums, part of the Web Development category; Hi, here we have sorted bundle of records by alter stement. Alter statement use to enable which column should be ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi, here we have sorted bundle of records by alter stement. Alter statement use to enable which column should be sorted the records. Refer below code: CREATE TABLE check_orderby (id INTEGER, id1 INTEGER, val FLOAT(10,2) )ENGINE=MyISAM; INSERT INTO check_orderby VALUES(1,1,10.50); INSERT INTO check_orderby VALUES(1,3,10.50); INSERT INTO check_orderby VALUES(1,2,10.50); INSERT INTO check_orderby VALUES(1,5,10.50); INSERT INTO check_orderby VALUES(1,4,10.50); COMMIT; ALTER TABLE check_orderby DROP ORDER BY id1; SELECT * FROM check_orderby; +------+------+-------+ | id | id1 | val | +------+------+-------+ | 1 | 1 | 10.50 | | 1 | 2 | 10.50 | | 1 | 3 | 10.50 | | 1 | 4 | 10.50 | | 1 | 5 | 10.50 | +------+------+-------+ Thanks, Prasath the great.
__________________ Prasath.K |
| Sponsored Links |
| |||
| hi prasath, Error occurred while executing this query Code: ALTER TABLE check_orderby DROP ORDER BY id1; |
| |||
| Hi kumaresan, i have wrongly pasted the code. u can use ALTER TABLE check_orderby ORDER BY id1; its working fine. Thanks, Prasath the great.
__________________ Prasath.K |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to sort Datatable | oxygen | C# Programming | 2 | 04-22-2008 09:25 PM |
| How can we sort the values in dataset? | mobilegeek | C# Programming | 4 | 04-18-2008 03:39 AM |
| How to sort object array? | raja | C# Programming | 4 | 03-14-2008 08:52 PM |
| Can I get javascript to determine a browsers font setting and alter | srikumar_l | HTML, CSS and Javascript Coding Techniques | 0 | 11-21-2007 09:28 PM |
| Oracle Cluster - Create and Alter Basic Syntax | Murali | Database Support | 2 | 07-11-2007 05:40 AM |