2
我有表格和數據。如何在PostgreSQL中查看txt/doc/pdf/html文件
我要的是,通過有names
..
--student table
create table student(
sid int,
sname text
);
--student details
insert into student(sid,sname)
values(101,'John'),
(102,'barbie'),
(103,'britney'),
(104,'jackson'),
(105,'abraham')
;
--questions table all the questions for the test
create table questions(
questionid serial,
question text
);
--i have the questions in my table
insert into questions(question)
values('How much is 1+1'),('What is the value of PI'),('Whose dimensions are all equal');
--the test table it contains the details of the test attebdee by every student..
create table test(
sno serial,
sid int,
questionid int,
answer text,
marks int
);
--insert into test table the answers and the marks ..should be updated here..
insert into test(sid,questionid,answer,marks)
values(101,1,'2',10),
(102,2,' 3 ',0),
(103,3,' ring ',0),
(104,1,' 1 ',0),
(105,1,' 1 ',0),
(101,2,'3.7',0),
(101,3,' square',10);
我的要求sorted
生成所有學生的報告:
我TXT/DOC/PDF/HTML文件,該文件是生成應該在一個視圖如下
如何從this..i創建一個文本文件,我知道創建從表中的文本文件的使用::複製表名,以'e:\ sample.csv'分隔符','csv標題; – 09Q71AO534
但我不想通過創建一個新的表 – 09Q71AO534
我曾與此感謝:-) – 09Q71AO534