- How can I check if a table contains duplicate rows, with the same value of the couple (date, time) ?
- How can I remove all but one row ?
- Id is a sequential number that I increment after every post, how can I restore it after removing a row ?
the table tableTen is:
+-----------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------+-------------+------+-----+---------+-------+
| id | int(11) | YES | | NULL | |
| symbol | varchar(25) | YES | | NULL | |
| date | date | YES | MUL | NULL | |
| time | time | YES | | NULL | |
+-----------+-------------+------+-----+---------+-------+