function-snipet.sql 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 = 'sales@dabory.com';
  15. delete from pro_member where email = 'sales@dabory.com';
  16. delete from dbr_company where email = 'admin@dabory.com';
  17. delete from pro_member where email = 'admin@dabory.com';
  18. delete from dbr_company where email = 'dev1@dabory.com';
  19. delete from pro_member where email = 'dev1@dabory.com';
  20. delete from dbr_company where email = 'dev2@dabory.com';
  21. delete from pro_member where email = 'dev2@dabory.com';
  22. delete from dbr_company where email = 'dev1.dabory@gmail.com';
  23. delete from pro_member where email = 'dev1.dabory@gmail.com';
  24. delete from dbr_company where email = 'dev2.dabory@gmail.com';
  25. delete from pro_member where email = 'dev2.dabory@gmail.com';
  26. delete from dbr_company where email = 'wngur6076@naver.com';
  27. delete from pro_member where email = 'wngur6076@naver.com';
  28. delete from dbr_company where email = 'kimhi65@naver.com';
  29. delete from pro_member where email = 'kimhi65@naver.com';