473,699 Members | 2,416 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Canot make Index Descending ?

Whatever I try I do not seem to be able to get the keys to be Descending. I
assume collation A means Ascending which indeed they are when I enter DATA ?
I use

CREATE TABLE WGSubCategory (
CATId decimal(3,0) default 0,
SUCId decimal(3,0) default 0,
SUCDescription char(30) default NULL,
CATActive decimal(1,0) default 1,
UNIQUE KEY WGSubCategoryI (CATId DESC, SUCId DESC)
) TYPE=MyISAM;
mysql> show index from WGSubCategory;
+---------------+------------+----------------+--------------+-------------+
-----------+-------------+----------+--------+------+------------+---------+
| Table | Non_unique | Key_name | Seq_in_index | Column_name |
Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment |
+---------------+------------+----------------+--------------+-------------+
-----------+-------------+----------+--------+------+------------+---------+
| WGSubCategory | 0 | WGSubCategoryI | 1 | CATId |
A | NULL | NULL | NULL | YES | BTREE | |
| WGSubCategory | 0 | WGSubCategoryI | 2 | SUCId |
A | NULL | NULL | NULL | YES | BTREE | |
+---------------+------------+----------------+--------------+-------------+
-----------+-------------+----------+--------+------+------------+---------+

Collation is A regardless of DESC in the index table creation

Help please.

Gary
Jul 19 '05 #1
2 1607
Gary wrote:
Whatever I try I do not seem to be able to get the keys to be Descending.


What does that have to do with Perl?

If you have an SQL problem, go post it to an SQL newsgroup.
If you have a Perl problem, go post it to comp.lang.perl. misc instead of here.
-Joe
Jul 19 '05 #2

"Joe Smith" <Jo*******@inwa p.com> wrote in message
news:q0I7c.5957 6$JL2.765032@at tbi_s03...
Gary wrote:
Whatever I try I do not seem to be able to get the keys to be
Descending.
What does that have to do with Perl?

If you have an SQL problem, go post it to an SQL newsgroup.
If you have a Perl problem, go post it to comp.lang.perl. misc instead of here. -Joe

Good point

Thanks.
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
17395
by: Tuhin Kumar | last post by:
Hi, Oracle give the error ORA-01418 when I try to do the following; Create unique index t1_pk on TABLE1(EntryId DESC) ; If the I try to add primary key Contraint using the above index t1_pk as below: ALTER TABLE TABLE1 ADD CONSTRAINT TABLE1_PK PRIMARY KEY (EntryId) USING INDEX t1_pk;
1
2008
by: udayt | last post by:
Hi, My application needs to calculate the sort order of an index key (whether the index key is descending or ascending). The user may connect to MS7 or MS2K servers. As far as I know, the descending indices are supported in version 8 i.e SQL 2000. In MS2K, I can get the index key information by SELECT INDEXKEY_PROPERTY(table_ID , index_ID , key_ID , IsDescending) which returns 1 if key is descending. But as this is only for MS2K, it...
2
8393
by: Luigi Napolitano | last post by:
Hello, I use this algorithm to sort an array "v" in the descending order. void quickSort(float v, int lo0, int hi0) { int lo = lo0; int hi = hi0; if (lo >= hi) return; float mid = v;
2
1848
by: Trevor Best | last post by:
I have a unique index based on the following columns: ProjectID (int) MaterialCatalogID (int) Material catalogues are pretty much static but projects are dynamic and people are most likely to be working on the latest project so would using a descending sort on the ProjectID in the index gain any performance?
3
5816
by: charley | last post by:
Hello, The appearance of the page should be for the main image, lpmap.jpg, to be on the bottom, (z-index: 1), with pictures, (image0.jpg - image9.jpg), and accompaning notes to appear on top, (z-index: 2), minimized to 20px x 20px width & height, using the box model. These 10, (point0 to point9), are positioned on the map with the position style. These small images should then enlarge when the mouse hovers over them, (z-index: 3).
8
5251
by: Mike | last post by:
Hello, I have a few rather urgent questions that I hope someone can help with (I need to figure this out prior to a meeting tomorrow.) First, a bit of background: The company I work for is developing a web-based application, one part of which involves allowing the user the ability to page through transaction "history" information. The _summary_ history table will have the following fields: ServiceName, Date, User-Ref1, User-Ref2,...
2
1218
by: MissiMaths | last post by:
Hi, I was wondering if you could help me with something. I have a table in access that I have placed an autonumber index on to run in ascending order. Data is entered onto the table through a number of forms and using DAO. My problem is that every so often the index decides itself to reverse to descending order. As I use a move last to reference the appropriate part of the table for data entry, this can cause no end of problems. I was...
10
14689
by: Laurence | last post by:
Hi there, How to differentiate between unique constraint and unique index? These are very similar but I cannot differentiate them? Could someone give me a hand? Thanks in advance
9
7600
by: fgh.vbn.rty | last post by:
I am frequently using maps like the following: map<string, map<int, vector< pair<int, int m1; map<int, map<string, map<int, int m2; This can be a little difficult to maintain if another coder doesn't really know the what the indexes stand for, the ordering of the indexes, etc., Is there a better way to define multiple index maps? Of course, I can typedef the inner maps into something more readable but is that always
0
8620
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9180
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8920
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6536
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4378
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3060
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2351
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2012
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.