You are on page 1of 42

1

getString SQLcharvarchar.
SQL
(getObject).
getString
.

int jdbcType = rsmd.getColumnType(1); To 1


.

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

1114():
1. PKTABLE_CAT
PKTABLE CAT

2. PKTABLE_SCHEM

3. PKTABLE_NAME

4. PKCOLUMN_NAME
,
,
5. FKTABLE_CAT

6. FKTABLE_SCHEM

7. FKTABLE_NAME

8. FKCOLUMN_NAME

9. KEY_SEQ

10.UPDATE_RULE

,:
1.
importedKeyNoAction
2.
importedKeyCascade
3 null
3.null
importedKeySetNull
4.default importedKeySetDefault
5.
importedKeyRestrict
11. DELETE_RULE

,:
1.
importedKeyNoAction
2.
importedKeyCascade
3.null
importedKeySetNull
4.default importedKeySetDefault
5.
5.
importedKeyRestrict

28

29

30

31

11:DatabaseMetaData.
16: dbmd dbconnection
17:
18:catalogs

32

21:catalogs.
22:
2326:
27:
28:
29:db320
.
3233:
35: db320
3233:

33

43:
4550:, SQL
43:

34

35

36

37

38

39

6:ParameterStatement
11:
12:
1417:

40

41

42

You might also like