Hi,

SELECT LEFT(YOUR_COLUMN,2) FROM YOUR_TABLE.....for position
SELECT RIGHT(YOUR_COLUMN,2) FROM YOUR_TABLE ....for type

Regards,

Gelu
_____________________________________________________
G.NET SOFTWARE COMPANY

Permanent e-mail address : [EMAIL PROTECTED]
                                          [EMAIL PROTECTED]
----- Original Message -----
From: "Leonardo Javier Bel&alefmaks;n" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 13, 2003 10:09 PM
Subject: help with query


> Hi all!
>     I would like to build a query that I can use to search hierichally
from
> an char(4) id composed as followed
> 2positions for the class of plant (for example)
> and 2 positions for the type of flower (for example)
>
> if someone give me the id that means red rose tree, and I know there is
> another clasifications of tree and another colors for the rose, does
anyone
> knows how to retrieve them.
>
> 0100 - Rose tree
> 0101 - pink rose tree
> 0102 - red rose tree
> 0103 - rococo rose tree
> 0200 - generic tree
>
> Thanks in advance
> Leonardo J. Bel&alefmaks;n.
>
>
>
> query mysql sql blah!
>
>
>
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail <[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>
>


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to