Compare the table structure of the source table, the two are exactly the same, complete with table structure and index
Conclusion: The table created in MySQL under CREATE Table A as SELECT * from B does not contain index information, like clause form contains complete table structure and index information
So the AS SELECT clause generally applies to Yu Jianquo and copies the source table data, and the LIKE clause applies to situations where only the table structure is replicated
Risk of misuse: lack of index is fatal to the performance of the business, needless to say.
Oracle under:
A create as select also does not create an index
b Oracle does not support like clauses
How to achieve the full creation of the table structure and indexing method remains to be explored!
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.