Re: accessing enum
Jeff Mathis <[email protected]>
| Newsgroups | gmane.comp.db.mysql.java |
|---|---|
| Message-ID | <[email protected]> |
right. he should be calling a getString() method to retrieve an enum
field.
On Nov 1, 2006, at 3:46 PM, Christopher G. Stach II wrote:
> Jon Drukman wrote:
>> CREATE TABLE `file_sha1` (
>> `id` int(10) unsigned NOT NULL default '0',
>> `type` enum('dl','wm','qt','psp','hd','mp4') NOT NULL default 'dl',
>> `sha1` char(40) NOT NULL default '',
>> `path` char(100) NOT NULL default '',
>> `size` int(10) unsigned NOT NULL default '0',
>> PRIMARY KEY (`id`,`type`)
>> ) ENGINE=MyISAM DEFAULT CHARSET=latin1 |
>> mysql> select distinct(type) from file_sha1;
>> +------+
>> | type |
>> +------+
>> | dl |
>> | wm |
>> | qt |
>> | psp |
>> | hd |
>> +------+
>> 5 rows in set (0.21 sec)
>> What else can I tell you?
>> -jsd-
>
> How is it being retrieved? :)
>
> --
> Christopher G. Stach II
>
> --
> MySQL Java Mailing List
> For list archives: http://lists.mysql.com/java
> To unsubscribe: http://lists.mysql.com/java?
> [email protected]
>
Visit our website at http://www.ubs.com
This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
should not disseminate, distribute or copy this e-mail. Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses. The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission. If
verification is required please request a hard-copy version. This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.
--
MySQL Java Mailing List
For list archives: http://lists.mysql.com/java
To unsubscribe: http://lists.mysql.com/[email protected]