WIN 32 or 64 bit
2. From win Start, using "search program and files" to find out ODBC.
3. Add Mysql into User DSN
4. Add ODBC into Excel.
※ Once Mysql table was updated, all push the refresh button, excel sheet will be refreshed at the same time.
■ Keyword | |||||||||
Extjs | Ext | Javescript | |||||||
Store | |||||||||
proxy | idProperty | ||||||||
■ Issue | |||||||||
Data.items | Data.items | ||||||||
ID | NAME | ID | NAME | ||||||
111 | A111 | 111 | A111 | ||||||
111 | A222 | ⇒ | |||||||
111 | A333 | ||||||||
222 | B222 | 222 | B222 | ||||||
■ Solution | |||||||||
STEP① | |||||||||
Ext.define(modelName, { | |||||||||
extend : "Ext.data.Model", | |||||||||
fields : ["num", | |||||||||
proxy: { | |||||||||
type: 'ajax', | |||||||||
reader: { | |||||||||
type: 'json', | |||||||||
idProperty: 'undefined'}} | |||||||||
STEP② | |||||||||
⇒ | store.loadRawData(data.items); | ||||||||
idProperty will decide which field will be primary key. | |||||||||
Default is field:"ID". | |||||||||
Unknown column ... in 'on clause'
Error SQL statement
- 「FROM a,b」 mutiple table to join
- 「JOIN」include join statement
SELECT * FROM t1, t2 JOIN t3 ON (t1.i1 = t3.i3);
Unknown column ‘t1.i1’ in ‘on clause’
Solution:
1. SELECT * FROM (t1, t2) JOIN t3 ON (t1.i1 = t3.i3);
2. SELECT * FROM t1 JOIN t2 JOIN t3 ON (t1.i1 = t3.i3);