Last modified by Ricardo Julio Rodríguez Fernández on 2025/07/13 08:08

From version 16.1
edited by Ricardo Julio Rodríguez Fernández
on 2024/01/17 07:20
Change comment: There is no comment for this version
To version 13.1
edited by Ricardo Julio Rodríguez Fernández
on 2024/01/17 07:17
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -6,9 +6,12 @@
6 6  def sql = new Sql(services.component.getConnection())
7 7  
8 8   println "|=Pid|= Surname|= Name|= Category"
9 - sql.rows("SELECT PersonnelID,Surname,Name,Category FROM IGFAE_Personnel ORDER BY Surname").each{
9 + sql.eachRow("SELECT PersonnelID,Surname,Name,Category FROM IGFAE_Personnel ORDER BY Surname"){
10 10   println "|${it.PersonnelID}|${it.Surname}|${it.Name}|${it.Category}"
11 11   }
12 + sql.rows("SELECT COUNT(*) FROM IGFAE_Personnel"){
13 + println "|${it}"
14 + }
12 12   sql.close()
13 13  
14 14  {{/groovy}}