Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图编写一个代码,我可以将数据库中第 1 列的第一个字母与第 2 列的文本结合起来,并将结果插入另一列
基本上这就是我想要发生的事情
从
first_name last_name username Lorem Ipsum
进入
first_name last_name username Lorem Ipsum lipsum
处理这个问题的最佳方法是什么?
提前致谢
UPDATE tableName SET username = CONCAT(SUBSTRING(LOWER(first_name),1,1),LOWER(last_name))