msql>function user.malhistogram(db:str,tablename:str,
columnname:str):bat[:any_1,:int];
X_2 := sql.mvc();
X_3 :=
sql.bind(X_2,db,tablename,columnname,0);
return
aggr.histogram(X_3);
end malhistogram;
msql>h :=
malhistogram("voc","voyages","trip");
msql>io.print(h);
#-----------------#
# h t
# name
# int int #
type
#-----------------#
[ 1, 3038 ]
[ 2, 1907 ]
[ 3, 1288 ]
[ 4, 852 ]
...
thanks a lot.
George Zhang