I'm actually trying to avoid introducing a 2nd query to handle this, as I feel it shouldn't be necessary.
I'd rather just perform some kind of action if/when my attempt at doing an INSERT fails (due to the UNIQUE constraint being encountered). Surely there has to be a way to handle that?
- Yvan
Main Topics
Browse All Topics





by: svelarsenPosted on 2008-07-12 at 05:53:50ID: 21988912
You can select username before inserting, and if exists you just show info about that.
Select allOpen in new window