v5:userguide:portable_sql
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
reference:portable_sql [2015/12/04 18:36] – mnewnham | v5:reference:portable_sql [2016/01/13 02:31] – ↷ Page moved from reference:portable_sql to v5:reference:portable_sql mnewnham | ||
---|---|---|---|
Line 153: | Line 153: | ||
===== DDL and Tuning ===== | ===== DDL and Tuning ===== | ||
- | There are database design tools such as ERWin or Dezign that allow you to generate data definition language commands such as ALTER TABLE or CREATE INDEX from Entity-Relationship diagrams. | + | There are database design tools such as ERWin or Dezign that allow you to generate data definition language commands such as '' |
However if you prefer to use a PHP-based table creation scheme, ADOdb provides you with this feature. Here is the code to generate the SQL to create a table with: | However if you prefer to use a PHP-based table creation scheme, ADOdb provides you with this feature. Here is the code to generate the SQL to create a table with: | ||
Line 272: | Line 272: | ||
The best way to ensure that you have portable SQL is to have your data tables designed using sound principles. Learn the theory of normalization and entity-relationship diagrams and model your data carefully. Understand how joins and indexes work and how they are used to tune performance. | The best way to ensure that you have portable SQL is to have your data tables designed using sound principles. Learn the theory of normalization and entity-relationship diagrams and model your data carefully. Understand how joins and indexes work and how they are used to tune performance. | ||
- | |||
- | Visit the following page for more references on database theory and vendors: [[http:// | ||
(c) 2002-2014 John Lim. | (c) 2002-2014 John Lim. |
v5/userguide/portable_sql.txt · Last modified: 2020/12/30 21:32 by peterdd