generate sql(mysql) from doc(word)