重命名重複行我有一個表像下concating在MySQL
ID student_name dept email
1 Mary Wise Eng [email protected]
2 John Walter Sc [email protected]
3 Sophia Jacob Politics [email protected]
4 Ava William Eng [email protected]
5 Mary Wise Politics [email protected]
6 John Walter Eng [email protected]
7 John Walter Politics [email protected]
8 Sophia Eng [email protected]
9 Emma Eng [email protected]
10 Sherlock Eng [email protected]
生成的電子郵件ID山坳通過[email protected] 問題是當名稱是相同的電子郵件ID也是相同。 我想要電子郵件ID附加1,2,3時存在相同的名稱。
For example in table above
the mary-wise on 5th row should be [email protected],
6th row should be, [email protected],
7th row should be, [email protected]
如何儘可能快地使用mysql查詢更新我的電子郵件列。 我嘗試使用php與MySQL它需要太長,當表中包含百萬行。
感謝
電子郵件中,我希望更新的值,其中列名它有超過1個相同的條目。連續的條目應該添加1,2,3等 – user3197800
@ user3197800。 。 。這就是'update'所做的。 –