Advertisement
Virajsinh

check how many tables in your MySQL database have a column named product_type

Sep 6th, 2024
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.20 KB | Source Code | 0 0
  1. -- check how many tables in your MySQL database have a column named product_type
  2. SELECT table_name
  3. FROM information_schema.columns
  4. WHERE column_name = 'product_type'
  5. AND table_schema = 'database_name';
Tags: mysql
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement