How to import csv file to sqlite with correct data types

后端 未结 5 1274
再見小時候
再見小時候 2020-12-24 15:13

When I import a csv file to sqlite database, it imports number as string to integer column, how can I fix this? A line from my csv file like this:

 31,c,BB R         


        
5条回答
  •  太阳男子
    2020-12-24 15:48

    1. Import CSV file into SQLite.
    2. Go to Database Structure and select imported CSV file
    3. select modify table from the tab
    4. select field one and change name to desired name of column.
    5. Next select the desired data type from the drop down menu. You can now change from Text to Integer or Numeric depending on the data you are working with

    enter image description here

提交回复
热议问题