create a batch file in windows to import data in salary table in salary.db: sqlite3.exe…
- User
create a batch file in windows to import data in salary table in salary.db: sqlite3.exe in current folder all W12*.txt in this folder salary table contain 79 text columns [column 1 to coulmn 77 name is col1... col77, column 78 is region and column 79 is yearmonth] and W12 tab separated value file contain 77 columns. all W12*.txt name is example: W12757351000401.txt (W + "127573" same for all file + region code 4digit in thid example "5100"+ yearmonth 4 digit lsat digit that in example "0401") i need batch file to import all files in current folder and add region digit to coulmn 79 and yearmonth 4 digit to column 78
- Assistant
- User
i have 19 text files every month with format tsv (tab separated value), with this name:W12757351000304.txt (w + 6 digit is fixed for all of 19 files + 4 digit for region code + 4 digit yearmonth)Every file contain 77 column, i need move data to sqlite db automatically and add region code for every record and yearmonth, (every record in db contain 79 column) any suggestion how import auto in windows, sqlite3.exe in this currnt folder, all w*.txt file in same current folder. db name is "salary.db" table name is " salary:
example: W12757351000401.txt (W + "127573" same for all file + region code 4digit in thid example "5100"+ yearmonth 4 digit lsat digit that in example "0401") i need batch file to import all files in current folder and add region digit to coulmn 79 and yearmonth 4 digit to column 78
- Assistant