Skip to content

Instantly share code, notes, and snippets.

@AleksandrT
Last active December 22, 2015 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AleksandrT/6534868 to your computer and use it in GitHub Desktop.
Save AleksandrT/6534868 to your computer and use it in GitHub Desktop.
Add sign language code support
-- Dumping structure for table test.cfsl
CREATE TABLE IF NOT EXISTS `cfsl` (
`slc` char(3) DEFAULT NULL,
`cc` char(2) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Dumping data for table test.cfsl: ~0 rows (approximately)
/*!40000 ALTER TABLE `cfsl` DISABLE KEYS */;
INSERT IGNORE INTO `cfsl` (`slc`, `cc`) VALUES
('asp', 'dz'),
('ase', 'us'),
('aed', 'ar'),
('aen', 'am'),
('asf', 'au'),
('asq', 'at'),
('bvl', 'bo'),
('bzs', 'br'),
('bho', 'gb'),
('bqn', 'bg'),
('cds', 'td'),
('csg', 'cl'),
('csl', 'cn'),
('csn', 'co'),
('csr', 'cr'),
('cse', 'cz'),
('dsl', 'dk'),
('dse', 'nl'),
('ecs', 'ec'),
('esn', 'sv'),
('eth', 'et'),
('fse', 'fi'),
('fsl', 'fr'),
('gsg', 'de'),
('gse', 'gh'),
('gss', 'gr'),
('gsm', 'gt'),
('icl', 'is'),
('inl', 'id'),
('ins', 'in'),
('isg', 'ie'),
('isl', 'il'),
('ise', 'it'),
('jcs', 'jm'),
('jsl', 'jp'),
('jos', 'jo'),
('xki', 'ke'),
('kvk', 'kr'),
('lsl', 'lv'),
('lbs', 'ly'),
('lls', 'lt'),
('xml', 'my'),
('mdl', 'mt'),
('mfs', 'mx'),
('qmm', 'mn'),
('xms', 'ma'),
('nbs', 'na'),
('nsp', 'np'),
('nzs', 'nz'),
('isn', 'ni'),
('nsi', 'ng'),
('nsl', 'no'),
('psc', 'ir'),
('prl', 'pe'),
('psp', 'ph'),
('pso', 'pl'),
('psr', 'pt'),
('psl', 'pr'),
('rsi', 'sb'),
('rms', 'ro'),
('rsl', 'ru'),
('sdl', 'sa'),
('sls', 'sg'),
('svk', 'sk'),
('sfs', 'za'),
('ssp', 'es'),
('sqs', 'lk'),
('swl', 'se'),
('tsl', 'tw'),
('tza', 'tz'),
('tsq', 'th'),
('tse', 'tn'),
('tsm', 'tr'),
('ugn', 'ug'),
('ukl', 'ua'),
('ugy', 'uy'),
('vsl', 've'),
('ysl', 'yu'),
('zsl', 'zm'),
('zib', 'zw');
update Country c set c.SLC = (select slc from cfsl where cc = c.cc);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment