DropTable.php 399 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace EasySwoole\DDL\Test;
  3. require_once '../vendor/autoload.php';
  4. use EasySwoole\DDL\DDLBuilder;
  5. $dropStuScoreSql = DDLBuilder::drop('student_score');
  6. echo $dropStuScoreSql . PHP_EOL;
  7. $dropStuScoreSql = DDLBuilder::dropIfExists('student_score');
  8. echo $dropStuScoreSql . PHP_EOL;
  9. //以下是输出sql语句
  10. /*
  11. DROP TABLE `student_score`;
  12. DROP TABLE IF EXISTS `student_score`;
  13. */