pg数据库命令行执行sql语句

D:\Program Files (x86)\PostgreSQL\9.6\bin>psql -d thematic_xjlf -h 192.168.0.164 -p 5432  -U postgres -c "select * from  ctrl_area "

 

mysql数据库命令行执行sql语句

mysql -uroot -proot -h192.168.0.217 -P6001   连接数据库 

select * from ruoyi.sys_user;  直接执行sql   (注意sql语句要以分号结尾)

use ruoyi 选择数据库

select * from  sys_user; 执行sql   (注意sql语句要以分号结尾)

相关文章:

  • 2022-03-10
  • 2022-12-23
  • 2021-07-20
  • 2021-11-02
  • 2021-12-18
  • 2021-12-30
  • 2021-09-18
猜你喜欢
  • 2022-12-23
  • 2021-07-14
  • 2022-12-23
  • 2022-01-27
  • 2022-12-23
  • 2021-09-23
  • 2022-12-23
相关资源
相似解决方案