show.py 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #coding=utf-8
  2. from Diff import *
  3. if __name__ == '__main__':
  4. #table
  5. tables,cols=FindNotIn()
  6. print("\n2016缺少的表:")
  7. print("-"*10)
  8. for t in tables:
  9. print("- "+t)
  10. print("\n2016缺少的字段:")
  11. print("-"*10)
  12. for c in cols.items():
  13. print("- %s:%s" %(c[0],c[1]))
  14. #tri
  15. tri,trisame=FindNotIn_TR_P_FN("TR")
  16. print("\n2016缺少的触发器:")
  17. print("-"*10)
  18. for t in tri:
  19. print("- "+t)
  20. print("\n与2016不一样的触发器:")
  21. print("-"*10)
  22. for t in trisame:
  23. print("- "+t)
  24. #proc
  25. proc,procsame=FindNotIn_TR_P_FN("P")
  26. print("\n2016缺少的存储过程:")
  27. print("-"*10)
  28. for p in proc:
  29. print("- "+p)
  30. print("\n与2016不一样的存储过程:")
  31. print("-"*10)
  32. for p in procsame:
  33. print("- "+p)
  34. #FN
  35. fn,fnsame=FindNotIn_TR_P_FN("FN")
  36. print("\n2016缺少的函数:")
  37. print("-"*10)
  38. for f in fn:
  39. print("- "+f)
  40. print("\n与2016不一样的函数:")
  41. print("-"*10)
  42. for f in fnsame:
  43. print("- "+f)