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
  drawing a table with the status of tasks in each thread pyfoo 3 420 Mar-01-2024, 09:29 AM
Last Post: nerdyaks
  How to create a table with different sizes of columns in MS word pepe 8 1,582 Dec-08-2023, 07:31 PM
Last Post: Pedroski55
  Trying to get counts/sum/percentages from pandas similar to pivot table cubangt 6 1,419 Oct-06-2023, 04:32 PM
Last Post: cubangt
  dict table kucingkembar 4 735 Sep-30-2023, 03:53 PM
Last Post: deanhystad
  Going through HTML table with selenium emont 3 816 Sep-30-2023, 02:13 AM
Last Post: emont
Thumbs Up Convert word into pdf and copy table to outlook body in a prescribed format email2kmahe 1 759 Sep-22-2023, 02:33 PM
Last Post: carecavoador
  Using pyodbc&pandas to load a Table data to df tester_V 3 828 Sep-09-2023, 08:55 PM
Last Post: tester_V
  Find a string from a column of one table in another table visedwings049 8 1,180 Sep-07-2023, 03:22 PM
Last Post: deanhystad
  Need to replace a string with a file (HTML file) tester_V 1 775 Aug-30-2023, 03:42 AM
Last Post: Larz60+
  How to store columns of a .csv in variables (when the .csv has no headers) ? hobbyist 6 1,270 Aug-18-2023, 02:06 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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