| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Johan Höök | Date: | October 7 2005 8:01am |
| Subject: | Re: Duplicate column error when creating view on 5.0.13 | ||
| View as plain text | |||
Hi Terence, I think your problem lies in your SELECT * If you look at the columnheaders below you get category_id twice. I guess you have to specify your columns with aliases. /Johan > > SELECT * FROM ticket_master tm, category_master cm > WHERE tm.category_id = cm.category_id; > +-----------+-------------+-------------+---------------+ > | ticket_id | category_id | category_id | category_name | > +-----------+-------------+-------------+---------------+ > | 1 | 1 | 1 | test | > +-----------+-------------+-------------+---------------+ > 1 row in set > > Thanks >
| Thread | ||
|---|---|---|
| • Duplicate column error when creating view on 5.0.13 | Terence | 7 Oct |
| • Re: Duplicate column error when creating view on 5.0.13 | Johan Höök | 7 Oct |
| • Re: Duplicate column error when creating view on 5.0.13 | Terence | 7 Oct |
| • Re: Duplicate column error when creating view on 5.0.13 | Johan Höök | 7 Oct |
| • Re: Duplicate column error when creating view on 5.0.13 | Martijn Tonies | 7 Oct |
| • Re: Duplicate column error when creating view on 5.0.13 | SGreen | 7 Oct |
| • Re: Duplicate column error when creating view on 5.0.13 | Terence | 10 Oct |
