将过滤后的数据移动到另一列

Move filtered data to another column

我有一个列 ema_email,它应该包含电子邮件地址,但您可以看到它有时包含 phone 个数字。这是该专栏的示例

864-943-1333
864-963-5302
864-987-3401
877-225-2922
888-211-3261 702
914-433-6205
917-767-7124
a.titus37@gmail.com
aaudreyisrael@gmail.com
abiblew@aol.com
acash@rrhlawfirm.com
acl@lewisbabcock.com
acreighton@fujifilm.com
adam.milstein@hagerpacific.com
Adelaide@islc.net
aellefson@hsblawfirm.com
afm@fairwayford.com
agarrard@henrypak.com
agnewdev1@aol.com
ajmaeurer@aol.com
akearse@motleyrice.com
akunz@turnerpadget.com
al.siegel@asiegelandassoc.com
alanscc@gmail.com
alexevins@parkerpoe.com
Alinaohene@me.com

有什么方法可以过滤掉这些 phone 数字并可能将它们移到正确的列中?还是我必须手动执行此操作?

如果相同 table,如果不是电子邮件地址,则同一行也必须复制列值:

update tablename set phoneno = ema_email
  where ema_email not like '%@%'

也许您还想清除 ema_email 值,然后添加 ema_email = NULL

如果是另一个 table(或行),我需要更多信息才能知道该怎么做!