1. Macro package
Add the macro package before \begin{document}
\usepackage{multirow}
2. Merge multiple lines
Code
three lines merge
\multirow{3}{*}{a}
example
\begin{center}
\tabcaption{表}
\label{tab:2}
\renewcommand\tabcolsep{1pt}%调整表格长度
\begin{tabular}
{cccccc}\toprule
名称&名称&名称&名称&名称& 名称\\\midrule
\multirow{3}{*}{a}&1&2&3&4&5\\
&1&2&3&4&5\\
&1&2&3&4&5\\\bottomrule
\end{tabular}\end{center}
3. Merge multiple columns
Code
to merge four columns
\multicolumn{4}{c}{3}
\begin{center}
\tabcaption{表}
\label{tab:2}
\renewcommand\tabcolsep{1pt}%调整表格长度
\begin{tabular}
{cccccc}\toprule
名称&名称&名称&名称&名称& 名称\\\midrule
\multirow{3}{*}{a}&1&\multicolumn{4}{c}{3}\\
&1&2&3&4&5\\
&1&2&3&4&5\\\bottomrule
\end{tabular}\end{center}