ESQL/C
--------------
1 ļĿ 
2 WindowsESQL/C 
3 UNIXбESQ/C   
4 UNIXESQL/C


1 ļĿ
------------------------

    : 01base.ec

    Ŀ:÷ʾʹESQL/CݿӦó򣬳Ӧйܡ        
        1. ʹsqlcadbenvcaΪȫֱ 
        2. ݿ 
        3. employeeв¼(id,name,address) 
        4. select
        5. delete
        6. update
        7. ӱemployeeлȡ 
        8. disconnect db


    : 02cursor.ec 

    Ŀ:÷ʾʹESQL/CݿӦó򣬳Ӧйܡ        
        1. declare, open, close
        2. select cursor with fetch next only
        3. select scroll cursor with fetch next, previous, last, first, 
           relative n, absolute n
        4. updateble cursor for update, and delete


    : 03blob.ec

    Ŀ:÷ʾͨESQL/C ȡBLOBݡ
        1. CardвBLOB"putblob.bmp"Ϊм¼
        2. ӱCardлȡBLOBݣΪļ"BMP*.BMP"


    : 04dynamic.ec

    Ŀ:÷ʾ4ද̬ESQL,
        1. 1 : insert, update, delete
        2. 2 : insert, update, delete
        3. 3 : select
        4. 4 : select 


2 WindowsESQL/C
--------------------------------------
    ʹ01base.ecΪʾ˵и÷Ҫ衣
    

    Ԥ:
        1. Կͻ-ģʽݿ'DBSAMPLE5'
        2. ӳ'ESQL CԤ'
        3. ļ/ļ˵򿪶Ի
        4. ѡ񲢴򿪸÷
        5. 'ESQL CԤ'Уѡݿ'DBSAMPLE5'
        6. ڹѡgoԤͬƵ.cļ

    룺 
        1. ʹ΢C(Visual C ++ 6.0 ߼ݵ)
        2. 'C:\DBMaker\5.4\include'ӵ'Include Files' ·С
        3. 'C:\DBMaker\5.4\lib'ӵ'Library Modules'·С
        4. 'C:\DBMaker\5.4\lib\dmapi54.lib'ӵӿģС
        5. 01base.exeļ

    ִ:
        1. ѡ'ִ01base.exe'
        
        
3 UNIXбESQ/C
------------------------------------------
        1. ESQL/CҪʵݿ⣬ΪDBMaker ESQL/C
           ԤdmppccҪݿ⡣
          
        2. ԤESQL/C

           % dmppcc -d DBSAMPLE5 -u SYSADM
   
           УDBSAMPLE5ݿƣSYSADMӵݿıʶơ
           dmppcc -hɡ

        3. ļṩʲô'cc'

        4. û'dbmaker'Ŀ¼£include·õ
           'inlcude'Ŀ¼C:

              % cc -c -I/APP_HOME/include 01base.c

        5. û'dbmaker'Ŀ¼£lib·õ
           'lib'Ŀ¼(/APP_HOME/lib)

        6. libdmapic.a, ڿͻ-еӦó
           :

          % cc -o 01base 01base.o -L/APP_HOME/lib -ldmapic -lm -ldl


4 UNIXESQL/C
-----------------------------------------------
    :
        1. Կͻ-ģʽݿ'DBSAMPLE5'  

        2. shell 'make'

           % make

        3. shell '01base'

           % ./01base

           н:

           John's address is Xi'an Torch Road No.1
           Name = Mary Black, Address = Beijing
           Name = Jane White, Address = guangzhou

