SQL/MX Programming Manual for C and COBOL (G06.24+, H06.03+)
C Sample Programs
HP NonStop SQL/MX Programming Manual for C and COBOL—523627-004
A-34
Using SQL Descriptor Areas to Select SQL/MP
KANJI and KSC5601 Data
{
 /* input in KANJI and output in KSC5601 .*/
 strcpy(hv_sql_stmt, "select wordInKsc5601 FROM words WHERE \
 wordInKanji = ? ;");
 execute_one_statement();
 /* input in KSC5601 and output in KANJI .*/
 strcpy(hv_sql_stmt, "select wordInKanji FROM words WHERE \
wordInKsc5601 = ? ;");
 execute_one_statement();
}
Example A-10. Using SQL Descriptor Areas to Select SQL/MP KANJI and 
KSC5601 Data  (page5of5)










