Python Forum
Fetch Oracle DB rows & print it in HTML file with table's col headers in table format
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fetch Oracle DB rows & print it in HTML file with table's col headers in table format
#2
You don't show us your code, so it is guessing. Let me start with the problem to write to the file. Have you read: 7.2. Reading and Writing Files?
So what is the problem?
f = open('aa.html', 'a')
f.write("<table></table>\n")
f.close()
Reply


Messages In This Thread
RE: Fetch Oracle DB rows & print it in HTML file with table's col headers in table format - by ibreeden - Sep-04-2020, 01:39 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Photo Converting Pandas DataFrame to a table of hourly blocks Abedin 1 755 Apr-24-2025, 01:05 PM
Last Post: snippsat
  Pinball table CCC fourbanks 0 491 Mar-09-2025, 03:10 PM
Last Post: fourbanks
  working with pivot table gunther 1 507 Jan-22-2025, 08:55 AM
Last Post: Keville_35
  Convert Json to table format python_student 4 15,578 Dec-05-2024, 04:32 PM
Last Post: Larz60+
  Extracting table and table name from PDF vinibhat 4 8,915 Aug-10-2024, 07:29 AM
Last Post: Pedroski55
  To fetch and iterate data from CSV file using python vyom1109 3 1,207 Aug-05-2024, 10:05 AM
Last Post: Pedroski55
  Cannot get cmd to print Python file Schauster 11 3,640 May-16-2024, 04:40 PM
Last Post: xMaxrayx
  drawing a table with the status of tasks in each thread pyfoo 3 1,559 Mar-01-2024, 09:29 AM
Last Post: nerdyaks
  How to create a table with different sizes of columns in MS word pepe 8 9,228 Dec-08-2023, 07:31 PM
Last Post: Pedroski55
  Trying to get counts/sum/percentages from pandas similar to pivot table cubangt 6 3,631 Oct-06-2023, 04:32 PM
Last Post: cubangt

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020