Skip to content
Advertisement

mysql query question about removing data from columns

This is what the table looks like right. I only want to delete the data in the two columns on the right. So let’s say i want to delete the first row Aheadworks_AdvancedSearch columns on the right.

I’m sorry i’m horrible in mysql.

Would this be the right syntax? How can i combine as well?

Advertisement

Answer

As commented by Strawberry, it looks like you want an update statement rather than delete. The syntax would be:

This resets columns schema_version and data_version to null on the row(s) whose module is equal to 'Aheadworks_AdvancedSearch'.

On the other hand, if you want to delete the entire row(s), then:

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement