If you want to make dynamic query, or compose form generator, and dynamically generated form, you can use the following syntax into view table for use.
If you want to make dynamic query, or compose form generator, and dynamically generated form, you can use the following syntax into view table for use.
Suppose I have two tables in the database are the Departments and Employees as follows:
Departments |
|||
Data name row |
type of data |
length |
Allow Null |
bottom |
varchar |
50 |
0 |
name |
varchar |
50 |
0 |
manager |
varchar |
50 |
0 |
budget |
int |
4 |
0 |
Employees |
|||
Data name row |
type of data |
length |
Allow Null |
one |
varchar |
50 |
0 |
name |
varchar |
50 |
0 |
dpno |
varchar |
50 |
1 |
salary |
int |
4 |
0 |
aaa |
char |
10 |
1 |
I use the following syntax:
The following is presented with a screen, we can know the database created by the user related data tables and other messages.
sTableName |
sColumnsName |
iColumnsLength |
iColumnsOrder |
sColumnsType |
iIsNull |
Departments |
bottom |
50 |
1 |
varchar |
0 |
Departments |
name |
50 |
2 |
varchar |
0 |
Departments |
manager |
50 |
3 |
varchar |
0 |
Departments |
budget |
10 |
4 |
int |
0 |
Employees |
one |
50 |
1 |
varchar |
0 |
Employees |
name |
50 |
2 |
varchar |
0 |
Employees |
dpno |
50 |
3 |
varchar |
1 |
Employees |
salary |
10 |
4 |
int |
0 |
Employees |
aaa |
10 |
5 |
char |
1 |
In 2000 or 2005 under the current tests are normal.
Smart people will seize every opportunity, smarter people will continue to create new opportunities.
Every second ten million kinds of possible, including a miracle!
Technology is never a problem!
Motto: There is a computer where you find me! !
Original: Large column [SQL] to obtain data in the database tables, fields, type, length, data structures, and other information