Skip to content
Advertisement

How to separate everything inside my sqlite database

i have a database which has two thing in my database, name of a fruit and how long is it in the freezer.

when i use

rows will actually show the name of the fruit, time in freezer and the amount of fruit in batch

How do i separate this, so that

Or at least tell me how do i make a list that can contain two same integer in it so when i have 2 piece of apple that is two days in freezer, when i call

it will print actually print [2, 2] not just 2

Advertisement

Answer

What you want is all the rows of the table with the columns fruit_name and freeze_time and a 3d column with the value 1:

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement