\documentclass{article}
\usepackage{caption}
\usepackage{longtable}

\begin{document}
\listoftables

\begin{table}
\caption{A table}
\end{table}

\begin{longtable}{l}
\caption{A longtable}\\
\end{longtable}

\end{document}
