I am trying to upload a tab delimitted file with MySQL. I want a query something likes this: LOAD DATA LOCAL INFILE 'file' INTO TABLE tbl FIELDS TERMINATED BY 'TAB'
Is there something I can subsitute for TAB to make this work?
views:
278answers:
1
+1
A:
have you tried '\t' the escape sequence + "T" is considered tab... haven't tried, but might be what you need
DRapp
2010-04-06 00:35:28
That's the one. MySQL uses the standard 'C' escape sequences for special characters.
Marc B
2010-04-06 00:37:07
still doesn't work... I should be able to use `FIELDS TERMINATED BY '/t'` or `FIELDS TERMINATED BY 'T'`?
Brian
2010-04-06 00:38:28
`FIELDS TERMINATED BY '\t'` is what you want to use , not `FIELDS TERMINATED BY '/t'`.
staticsan
2010-04-06 01:31:57