![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| Database Database problems or need to ask a question? maybe something to do with sql injections or a database software question. Database topics cover MySQL, PostgreSQL, Oracle, SQL Server or anything else related to databases. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| How do you remove, say the first 4 characters from a field? I have a bunch of department names in a column that is prefaced with accounting codes. Ex. 715-Human Resources, 813-Operations What's the MySQL query to remove the first 4 characters? (yes, they're consistent) Thanks! chris | |||
| Advertisements |
| | #2 | ||
| Loony2nz says... > How do you remove, say the first 4 characters from a field? > > I have a bunch of department names in a column that is prefaced with > accounting codes. > > Ex. 715-Human Resources, 813-Operations > > What's the MySQL query to remove the first 4 characters? (yes, they're > consistent) SELECT SUBSTR(<column_name>, 5) FROM <table_name>; GM | |||
| | #3 | ||
| On Jun 20, 5:49 pm, Geoff Muldoon <geoff.muld...@trap.gmail.com> wrote: > Loony2nz says... > > > How do you remove, say the first 4 characters from a field? > > > I have a bunch of department names in a column that is prefaced with > > accounting codes. > > > Ex. 715-Human Resources, 813-Operations > > > What's the MySQL query to remove the first 4 characters? (yes, they're > > consistent) > > SELECT SUBSTR(<column_name>, 5) FROM <table_name>; > > GM MUCHOS GRACIAS MI AMIGO!! That's just what I wanted! --Chris | |||
| Featured Websites | ||||
|
![]() |
| Tags: characters, field, hand, left, remove |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| special characters | Mandragon03@gmail.com | Database | 1 | 07-01-2007 11:00 PM |
| change some characters into one string | [XaToA] | PHP | 1 | 07-01-2007 3:41 PM |
| Speed of characters in server | Fletcher | Console Subjects | 1 | 06-26-2007 11:01 AM |
| accented characters question | David Floyd | Database | 4 | 06-26-2007 12:08 AM |
| using non-latin characters | jim | Database | 0 | 06-10-2007 12:27 AM |
| Featured Websites | ||||
|