摘要:
select score as '成绩' ,name as '姓名' from studentsUNION ALLselect AVG(score) from students; 在最后一行显示平均数; select score as '成绩' ,name as '姓名' from students 阅读全文
摘要:
*如果是系统崩溃,需要找回数据,PostgreSQL安装目录的data文件夹要存在 1.备份PostgreSQL安装目录到其他目录下 2.停止Postgres服务,可以在运行中输入services.msc,在启动的窗口中关闭掉postgres服务,也可以通过在cmd中输入 net stop post 阅读全文
摘要:
SQL server : select * into #products_temp from products; 直接查询一个到临时表 Postgersql : create temporary table "t_2" as select * from "SC_Contacts"; 创建一个临时表 阅读全文