% This file is embedded in datatool-user.pdf version 3.4.5 2026-08-23
% Example 71 Column with No Values
% Label: "ex:nullcol"
% arara: pdflatex
% arara: pdfcrop
\documentclass[12pt]{article}
\pagestyle{empty}
\usepackage{datatool}
\DTLnewdb{mydata}
\DTLaddcolumnwithheader{mydata}{name}{Name}
\DTLaddcolumnwithheader{mydata}{address}{Address}
\DTLnewrow{mydata}
\DTLnewdbentry{mydata}{name}{Zoë}
\DTLnewrow{mydata}
\DTLnewdbentry{mydata}{name}{José}
\DTLnewrow{mydata}
\DTLnewdbentry{mydata}{name}{Dickie}
% this row has an empty name:
\DTLnewrow{mydata}
\DTLnewdbentry{mydata}{name}{} 
\begin{document}
Number of rows: \DTLrowcount{mydata}.
Number of columns: \DTLcolumncount{mydata}. 

\DTLdisplaydb{mydata} 
\end{document}
