Help with mysql duplicate row
-
i have table in my database, which has theses fields id, regno, courseid, level, session, the regno can be inserted more than once as well as level and session, also courseid but with previous regno. i need to prevent duplicate rows with regno, courseid, level, session, on a row.
-
i have table in my database, which has theses fields id, regno, courseid, level, session, the regno can be inserted more than once as well as level and session, also courseid but with previous regno. i need to prevent duplicate rows with regno, courseid, level, session, on a row.
And how is it related to web development? Anyway - try distinct...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
-
And how is it related to web development? Anyway - try distinct...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
-
i have table in my database, which has theses fields id, regno, courseid, level, session, the regno can be inserted more than once as well as level and session, also courseid but with previous regno. i need to prevent duplicate rows with regno, courseid, level, session, on a row.
-
i have table in my database, which has theses fields id, regno, courseid, level, session, the regno can be inserted more than once as well as level and session, also courseid but with previous regno. i need to prevent duplicate rows with regno, courseid, level, session, on a row.
You need to have Unique index in your table or Check before inserting anyway have you set an Increment ID ?
Freelance makes perfect | http://codetrash.com