sqlite - Denormalize table and append -
how denormalize table
+---------+---------------------------------------------+ | lemma | definition | +---------+---------------------------------------------+ | abandon | feeling of emotional intensity | | abandon | forsake | | abandon | leave behind | | abbey | church associated monastery | | abbey | convent ruled abbess | +---------+---------------------------------------------+
as
+---------+-------------------------------------------------------------------------------+ | lemma | definition | +---------+-------------------------------------------------------------------------------+ | abandon | feeling of emotional intensity forsake leave behind | | abbey | church associated monastery convent ruled abbess | +---------+-------------------------------------------------------------------------------+
what should query?
select lemma, group_concat(definition, ' ') definition your_table group lemma
group_concat 1 of aggregate functions available in sqlite
Comments
Post a Comment