i have 19 text files every month with format cts (comma tab seperated), with this…
- User
i have 19 text files every month with format cts (comma tab seperated), with this name:W12345651000304.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 (prefer batch file, but feel free with other tools or programming language)?
- Assistant
- User
i have 19 text files every month with format cts (comma tab seperated), with this name:W12345651000304.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 (prefer c# or batch file)?
- Assistant
- User
i have 19 text files every month with format cts (comma tab seperated), with this name:W12345651000304.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 (prefer batch file and sqlite3 command line)?
- Assistant
- User
i need create sqlite database name "salary.db" in windows, contain 79 column that column name from 1 to 77 is col1...col77, column 79= region and column 78 = yearmonth all of them text, create a script to do that
- Assistant
- 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 exapmle: W12757351000401.txt (W + "127573" same for all file + region code 4digit + yearmonth 4 digit) 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