how to add a new column every time i run a python program
问题 i want my table to have 1st column as roll no,second as name.whenever i run python program i want to add a column of date in table.and in that new column i want to populate the list which i get from user.list will contain values 'P','A','P','P' etc.how to go about it? i tried first adding a column by alter command and then inserting data but nothing works. choice1=raw_input("\nEnter 'y' or 'n' to add new column:\n") if choice1 is 'y': cursor.execute(" ALTER TABLE table1 ADD datecolumn varchar