File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ dbdpp source.cnf target.cnf ref_table target_table > out.sql
40
40
```
41
41
will print into ** out.sql** list of SQL statements which should be applied to
42
42
_ db_to_change.target_table_ to make it consistent with _ db_reference.ref_table_ .
43
+ Only INSERT/UPDATE/DELETE statements are generated; there will be no ALTERs,
44
+ as _ dbdpp_ only work for tables with matching structure (the same set of fields and primary keys).
43
45
44
46
There are two modes of operation:
45
47
* if both ** source.cnf** and ** target.cnf** are given (even if they are the same),
@@ -49,6 +51,11 @@ There are two modes of operation:
49
51
50
52
Choose the option that is better for your particular case performance-wise.
51
53
54
+ The database names can be entered in the *** .cnf** files, _ and/or_ you may include them in command line arguments
55
+ as ` my_db_name.my_table_name ` . These names will neither be escaped nor quoted, so whatever you pass as a table name
56
+ will be used as-is both in _ performed_ and in _ generated_ SQL queries. Therefore, if you do not specify the database
57
+ name as a prefix for the table name, none will be added to generated INSERT/UPDATE/DELETE queries.
58
+
52
59
## How to compile?
53
60
54
61
### Requirements
You can’t perform that action at this time.
0 commit comments