\begin{table}[h!]
\begin{center}
\begin{tabular}{ |c|c|c|c|c|c|c|}
\hline
Class and class & Field & designation & type &size & observation \\
\hline
\multirow{6}{4em}{Member} & m $-$ code & code of member & N & 10 & Auto increment\\
& m$-$name & member name &A &20 &\\
&m$-$fname & member family name &A &20 &\\
& email & email of member &AN &20 &\\
& m$-$type & member type & A &20 &\\
& m$-$grade & member grade & A &20 &\\
\hline
\multirow{6}{4em}{Report } &R$-$code & report code &N & 10 &Auto increment
\\
& R$-$date& misconduct date & D & 8& dd$ \ $ mm$ \ $ yyyy \\ & R$-$hour & misconduct hour &H &6 &\\
&place & misconduct place &A &20 &\\
& cause & cause of report &A &50 &\\
%&st_name and st_fname & student name and fname &20 &A &\\
%& mb_name and mbfname & member name and & 20 &A \\
\hline
\multirow{6}{4em}{Decision } &d$-$code & decision code &N & 10 & \\
&c$-$code & convocation code &N & 10 & Auto increment
\\
& d$-$date& decision date & D & 8& dd$ \ $ mm$ \ $ yyyy \\ & d$-$hour & decision hour &H &6 &\\
&f$-$des & final decision &A &50 &\\
& cause & cause of decision &A &50 &\\
& level & level of infraction & N & 2&\\
& details & details of decision &A &50 &\\
%&st_name and st_fname & student name and fname &20 &A &\\
%& mb_name and mbfname & member name and & 20 &A \\
\hline
\multirow{6}{4em}{Convocation} &c$-$code & convocation code &N & 10 & Auto increment
\\
& m $-$ code & code of member & N & 10 & Auto increment
\\
& c$-$date& convocation date & D & 8& dd$ \ $ mm$ \ $ yyyy \\ & c$-$hour & convocation hour &H &6 &\\
&c$-$reason& convocation reason &A &50 &\\
%& cause & cause of desicion &A &50 &\\
%&st_name and st_fname & student name and fname &20 &A &\\
%& mb_name and mbfname & member name and & 20 &A \\
\hline
\multirow{6}{4em}{ Teacher } & st$-$code &student code &N & 10 & Auto increment
\\
& t $-$name & teacher name &20 &A & \\
& t$-$fname & teacher family name&20& A&\\
& email & email of member &AN &20 &\\
& m$-$type & member type & A &20 &\\
\hline
\multirow{6}{4em}{ Student } & st$-$code &student code &N & 10 & Auto increment
\\
&st$-$name & student name &20 &A & \\
&st$-$fname & student family name&20& A&\\
& email & email of member &AN &20 &\\
& m$-$type & member type & A &20 &\\
\hline
\multirow{6}{4em}{Department chief } & dch$-$code &department chief code &N & 10 & \\
&dch$-$name & department chief name &20 &A & \\
&dch$-$fname & department chief family name&20& A&\\
& email & email of department chief &AN &20 &\\
& m$-$type & member type & A &20 &\\
\hline
\multirow{6}{4em}{Dec$ - $Mem}
&d$-$code & decision code &N & 10 & Auto increment
\\
& & & & &\\
&m$-$code & member code &N & 10 & Auto increment
\\
& & & & &\\
\hline
\multirow{6}{4em}{Rep$ - $Mem}
&r$-$code & report code &N & 10 & Auto increment
\\
& & & & &\\
&m$-$code & member code &N & 10 & Auto increment
\\
& & & & &\\
\hline
\end{tabular}
\caption{Detailed description of fields}
\label{tabclass}
\end{center}
\end{table}
Asked
Active
Viewed 3,514 times
2
1 Answers
2
As already mentioned in above comments one of solution can be use of longtable:
Based on guessing about used document clas, page layout ... :
\documentclass{article}
\usepackage{geometry}
\usepackage{booktabs, longtable, multirow}
\begin{document}
\begin{longtable}{@{} lll cc l @{}}
\caption{Detailed description of fields}
\label{tabclass} \\
\toprule
Class and class
& Field & designation & type & size & observation \\
\midrule
\endfirsthead
\caption{Detailed description of fields (cont.)} \\
\toprule
Class and class
& Field & designation & type & size & observation \\
\endhead
\midrule
\multicolumn{6}{r}{continue on the next page}
\endfoot
\bottomrule
\endlastfoot
%
Member & m$-$code & code of member & N & 10 & Auto increment \\
& m$-$name & member name & A & 20 & \\
& m$-$fname & member family name & A & 20 & \\
& email & email of member & AN & 20 & \\
& m$-$type & member type & A & 20 & \\
& m$-$grade & member grade & A & 20 & \\
\midrule
Report & R$-$code & report code & N & 10 & Auto increment \\
& R$-$date & misconduct date & D & 8 & dd/mm/yyyy \\
& R$-$hour & misconduct hour & H & 6 & \\
& place & misconduct place & A & 20 & \\
& cause & cause of report & A & 50 & \\
%&st_name and st_fname & student name and fname &20 &A &\\
%& mb_name and mbfname & member name and & 20 &A \\
\midrule
Decision& d$-$code & decision code & N & 10 & \\
& c$-$code & convocation code & N & 10 & Auto increment \\
& d$-$date & decision date & D & 8 & dd/mm/yyyy \\
& d$-$hour & decision hour & H & 6 & \\
& f$-$des & final decision & A & 50 & \\
& cause & cause of decision & A & 50 & \\
& level & level of infraction & N & 2 & \\
& details & details of decision & A & 50 & \\
%&st_name and st_fname & student name and fname &20 &A &\\
%& mb_name and mbfname & member name and & 20 &A \\
\midrule
Convocation
& c$-$code & convocation code & N & 10 & Auto increment \\
& m$-$code & code of member & N & 10 & Auto increment \\
& c$-$date & convocation date & D & 8 & dd/mm/yyyy \\
& c$-$hour & convocation hour & H & 6 & \\
& c$-$reason & convocation reason & A & 50 & \\
% & cause & cause of desicion & A & 50 & \\
% & st_name and st_fname & student name and fname & 20 & A & \\
% & mb_name and mbfname & member name and & 20 & A & \\
\midrule
Teacher & st$-$code & student code & N & 10 & Auto increment \\
& t$-$name & teacher name & 20 & A & \\
& t$-$fname & teacher family name & 20 & A & \\
& email & email of member & AN & 20 & \\
& m$-$type & member type & A & 20 & \\
\midrule
Student & st$-$code & student code & N & 10 & Auto increment \\
&st$-$name & student name & 20 & A & \\
&st$-$fname & student family name & 20 & A & \\
& email & email of member & AN & 20 & \\
& m$-$type & member type & A & 20 & \\
\midrule
Department chief
& dch$-$code & department chief code & N & 10 & \\
& dch$-$name & department chief name & 20 & A & \\
& dch$-$fname& department chief family name & 20 & A & \\
& email & email of department chief & AN & 20 & \\
& m$-$type & member type & A & 20 & \\
\midrule
Dec$ - $Mem
& d$-$code & decision code & N & 10 & Auto increment \\
& & & & &\\
& m$-$code & member code & N & 10 & Auto increment \\
& & & & &\\
\midrule
Rep$-$Mem
&r$-$code & report code & N & 10 & Auto increment \\
& & & & &\\
& m$-$code & member code & N & 10 & Auto increment \\
& & & & &\\
\end{longtable}
\end{document}
As you can see, thable is redesigned: no vertical rules, for horizontal are used rules from booktabs package , no multirow cells in the first table column ...
Zarko
- 296,517

h!). – TeXnician Jun 04 '17 at 15:21[!h]so the table isn't allowed at top of page (not) or bottom of page (nob) or on a page on its own (nop) so going to the end of the document is most likely. – David Carlisle Jun 04 '17 at 15:21tifhis used alone:LaTeX Warning: `!h' float specifier changed to `!ht'.I think TeXnician is right, but a minimal working example (MWE) would help us to very this suggestion. – Schweinebacke Jun 04 '17 at 15:25centerenvironment but\centeringcommand in floats like this. See: Should I use center or centering for figures and tables? – Schweinebacke Jun 04 '17 at 15:32longtable-package which allows tables spanning more than one page. – Skillmon Jun 04 '17 at 16:09