Home  >  Article  >  Backend Development  >  求教大大们。该怎么解决

求教大大们。该怎么解决

WBOY
WBOYOriginal
2016-06-13 11:46:39887browse

求教大大们。
我从数据库中查询到我要的数据。比如QQ号。我要挑出6开头的号码。然后让这一批数据自动建成表,我只会手动建表,求大大们指点一二,
------解决方案--------------------
create table new_table select * from old_table where Expression
------解决方案--------------------
CREATE [TEMPORARY] TABLE [IF NOT EXISTS] tbl_name
    [(create_definition,...)]
    [table_options] [select_statement]

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn