Commit 357e91d5 authored by unknown's avatar unknown

Fixed bugs in the manual


mysql-test/chew_on_this/select.res:
  ***MISSING WEAVE***
parent bbd0c00b
...@@ -33099,7 +33099,7 @@ simple rename should get your data back. ...@@ -33099,7 +33099,7 @@ simple rename should get your data back.
@cindex changing, column order @cindex changing, column order
@cindex tables, changing column order @cindex tables, changing column order
@node Change column order, , ALTER TABLE problems, Problems @node Change column order, , ALTER TABLE problems, Problems
@Section How To Change the Order of Columns in a Table @section How To Change the Order of Columns in a Table
The whole point of SQL is to abstract the application from the data The whole point of SQL is to abstract the application from the data
storage format. You should always specify the order in which you wish to storage format. You should always specify the order in which you wish to
...@@ -33118,9 +33118,10 @@ SELECT col_name1, col_name3, col_name2 FROM tbl_name; ...@@ -33118,9 +33118,10 @@ SELECT col_name1, col_name3, col_name2 FROM tbl_name;
will return columns in the order @code{col_name1}, @code{col_name3}, @code{col_name2}. will return columns in the order @code{col_name1}, @code{col_name3}, @code{col_name2}.
You should @strong{NEVER}, in an application, use @code{SELECT *} and You should @strong{NEVER}, in an application, use @code{SELECT *} and
retrieve the columns based on their position, because the order in which columns are retrieve the columns based on their position, because the order in which
returned @strong{CANNOT} be guaranteed over time. A simple change to columns are returned @strong{CANNOT} be guaranteed over time. A simple
your database may cause your application to fail rather dramatically. change to your database may cause your application to fail rather
dramatically.
If you want to change the order of columns anyway, you can do it as follows: If you want to change the order of columns anyway, you can do it as follows:
...@@ -33207,7 +33208,7 @@ you are making a copy of the files in the database directory. If you want to ...@@ -33207,7 +33208,7 @@ you are making a copy of the files in the database directory. If you want to
make a SQL level backup of a table, you can use @code{SELECT INTO OUTFILE}. make a SQL level backup of a table, you can use @code{SELECT INTO OUTFILE}.
Another way to back up a database is to use the @code{mysqldump} program: Another way to back up a database is to use the @code{mysqldump} program:
@xref{mysqldump}: @xref{mysqldump}.
@enumerate @enumerate
@item @item
...@@ -33234,7 +33235,7 @@ If you have to restore something, try to recover your tables using ...@@ -33234,7 +33235,7 @@ If you have to restore something, try to recover your tables using
@code{myisamchk -r} first. That should work in 99.9% of all cases. If @code{myisamchk -r} first. That should work in 99.9% of all cases. If
@code{myisamchk} fails, try the following procedure: @code{myisamchk} fails, try the following procedure:
(This will only work if you have started @strong{MySQL} with (This will only work if you have started @strong{MySQL} with
@code{--log-update}. @xref{Update log}): @code{--log-update}. @xref{Update log}.):
@enumerate @enumerate
@item @item
...@@ -33471,7 +33472,7 @@ when connecting to the @strong{MySQL} server. ...@@ -33471,7 +33472,7 @@ when connecting to the @strong{MySQL} server.
@item @item
If your are using the @strong{MySQL} perl DBD module you can read the options If your are using the @strong{MySQL} perl DBD module you can read the options
from the @strong{MySQL} option files. @xref{Option files}: from the @strong{MySQL} option files. @xref{Option files}.
@example @example
$dsn = "DBI:mysql:test;mysql_read_default_group=client;" $dsn = "DBI:mysql:test;mysql_read_default_group=client;"
...@@ -33731,7 +33732,7 @@ The number of decimals for numeric fields. ...@@ -33731,7 +33732,7 @@ The number of decimals for numeric fields.
The functions available in the C API are listed below and are described in The functions available in the C API are listed below and are described in
greater detail in the next section. greater detail in the next section.
@xref{C API functions}: @xref{C API functions}.
@multitable @columnfractions .3 .7 @multitable @columnfractions .3 .7
@item @strong{mysql_affected_rows()} @tab @item @strong{mysql_affected_rows()} @tab
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment