function-snipet.sql 812 B

123456789101112131415161718192021
  1. SHOW FUNCTION STATUS WHERE Db = 'genmodel_back';
  2. SHOW PROCEDURE STATUS WHERE Db = 'genmodel_back';
  3. SELECT
  4. CONCAT('DROP ',ROUTINE_TYPE,' `',ROUTINE_SCHEMA,'`.`',ROUTINE_NAME,'`;') as stmt
  5. FROM information_schema.ROUTINES Where ROUTINE_SCHEMA = 'ssohost_db'
  6. SELECT
  7. CONCAT('DROP ',ROUTINE_TYPE,' ','`',ROUTINE_NAME,'`;') as stmt
  8. FROM information_schema.ROUTINES Where ROUTINE_SCHEMA = 'genmodel_back'
  9. SELECT group_concat(COLUMN_NAME) FROM INFORMATION_SCHEMA.COLUMNS
  10. WHERE TABLE_SCHEMA = 'weberp_db' AND TABLE_NAME = 'dbr_setup';
  11. SELECT concat('###', table_name,"$$$;", CHAR(10 using utf8)) FROM information_schema.tables
  12. WHERE table_schema = 'weberp_db';
  13. describe dbr_user_perm;
  14. delete from dbr_company where email = 'wngur6065@naver.com';
  15. delete from pro_member where email = 'wngur6065@naver.com';