Re: display contents of mySQL in order of # value in a column
select col1, col2, col3
from table1
order by col1 desc, col2
will order the result first by col1 in descending order, then by col2
in ascending order.
.
Relevant Pages
- Re: Inserting multiple records into two tables...with a twist
... I assume that you have an IDENTITY column, ... reason would typically be a high rate of concurrent insertions.) ... INSERT tblB(id, col1, col2, ... ... (comp.databases.ms-sqlserver) - Dynamic PreparedStatements with Variable In Parameters
... AND col2=? ... AND col3=? ... I have to start coding tomorrow so I'm eager ... (comp.lang.java.programmer) - Re: Required property of Primary Key fields
... col1 INTEGER NOT NULL, ... PRIMARY KEY (col1, col2) ... it's a bit pointless because the INSERT will fail with a "primary key ... (microsoft.public.access.tablesdbdesign) - Re: Strange effects of Cast
... Cast to tuncate strings. ... In the query below although I get the expected result in COL1 and COL2 ... COL3 and COL4 return only three characters. ... (comp.databases.oracle.misc) - RE: tough query (for me)
... query, I had to write VB code which used one query which obtained all of the ... would obtain data from both Col1 and Col2 into a recordset. ... Col1 and Col2 data to an array. ... (microsoft.public.access.queries) |
|