litlpooh <[EMAIL PROTECTED]> wrote on 12/11/2004 07:46:02: > I have three questions about mysql. > > > 1. > mysql> CREATE TABLE board ( > -> boardid char(6) binary NOT NULL, > -> title varchar(128) binary NOT NULL, > -> ) ENGINE=MYISAM; > Query OK, 0 rows affected, 0 warning (0.00 sec) > > mysql> desc board; > +----------+--------------+------+-----+---------+-------+ > | Field | Type | Null | Key | Default | Extra | > +----------+--------------+------+-----+---------+-------+ > | boardid | varchar(6) | | PRI | | | > | title | varchar(128) | | | | | > +----------+--------------+------+-----+---------+-------+ > 2 rows in set (0.00 sec) > > "char" type column cannot be with "varchar" type column. > is there any plan to fix it..? > if there is not.. > when do you think it will be fixed?
This is a documented feature of MySQL: http://dev.mysql.com/doc/mysql/en/CHAR.html It will thereforer probably never be changed. Why to you say that it "cannot" b of varchar type? I think that the opinion of the MySQL team is that there is no performance impact and no functional difference with the change. > > 2. > my second and last question is index descending.. > in the mysql document, > > "An index_col_name specification can end with ASC or DESC. > These keywords are allowed for future extensions > for specifying ascending or descending index value storage. > Currently they are parsed but ignored; > index values are always stored in ascending order" > > when do you think it will be possible? > what I want from you is just roughly plan. I have not heard of any plans for this. Since you can specify that results are ORDERED in ascending or descending order, what does it matter to you what order the index is held in? If MySQL can search an ascending index backwards, the effect is the same as a descending index. > 3. > I want to get 'DATE' typed data which including millisecond > format. > What can I use for this? Which function can be made it possible? No table type that I am aware of. The manual doeaz not contain msec, millisec or millisecond, so I don't think there is any such type. When I have to store such types, I use absolute milliseconds stored in BIGINTs. Alec Cawley -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]