This page is part of the book SQL-99 Complete, Really, by Peter Gulutzan & Trudy Pelzer. The authors have graciously allowed us to reproduce the contents of the book here. Because the book is about the SQL-99 standard, the contents of this and other pages in the book may not directly apply to MariaDB. Use the navigation bar to navigate the book.

In this chapter, we'll describe the fourth essential CLI resource: the desc. We have much to say about:

  • What is in a desc fields of the header and the "item descriptor areas".
  • How to make a desc, or how to use an automatically-made desc.
  • Similarities and differences of ARDs, APDs, IRDs and IPDs.
  • Functions which attack descs directly: SQLAllocHandle, SQLGetDescField, SQLSetDescField, SQLGetDescRec, SQLSetDescRec, SQLCopyDesc and others.
  • Functions which attack descs indirectly: SQLBindParameter, SQLBindCol, SQLColAttribute, SQLDescribeCol and others.