Skip to content

Commit

Permalink
Download shorter update file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjors Provoost committed Sep 6, 2009
1 parent 95c9169 commit 1b8a1a8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*.swp
adopt.txt
log/*
KIC.txt
config/app_config.yml
Expand Down
15 changes: 15 additions & 0 deletions update-stars.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
load data local infile 'adopt.txt' REPLACE into table stars
(@var1)
SET id=SUBSTR(@var1, 4,10),
number=SUBSTR(@var1,1,13),
lon_d=SUBSTR(@var1,17,2),
lon_m=SUBSTR(@var1,20,2),
lon_s=SUBSTR(@var1,23,5),
lat_d=SUBSTR(@var1,31,3),
lat_m=SUBSTR(@var1,35,2),
lat_s=SUBSTR(@var1,38,4),
mag=SUBSTR(@var1,45,5),
teff=SUBSTR(@var1,54,4),
logg=SUBSTR(@var1,61,5),
mh=SUBSTR(@var1,69,5),
adopted_by=SUBSTR(@var1,78,23);

0 comments on commit 1b8a1a8

Please sign in to comment.