DELETE row based on the column value

六眼飞鱼酱① 提交于 2019-12-11 00:10:02

问题


Is there a way for me to delete rows based on the value it contains? For example, I have a table with values in one column containing a URL value, for example,

/uk/quitclock/om2.asp

/uk/quitclock/om666.wav

Here, I need to delete rows with suffixes ending with WAV, GIF, or JPEG. How do I do that? If it's not possible, then is there any formula in excel that can help me do it?


回答1:


Try this on Database

DELETE FROM TABLE 
WHERE UPPER(COLUMN) LIKE '%.WAV' 
      OR UPPER(COLUMN) LIKE '%.GIF' 
      OR UPPER(COLUMN) LIKE '%.JPEG'



回答2:


for excel:

=OR(RIGHT(A1,3)="wav",RIGHT(A1,3)="gif",RIGHT(A1,4)="jpeg")

delete the TRUEs



来源:https://stackoverflow.com/questions/13888743/delete-row-based-on-the-column-value

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!