APOP_DB_TO_CROSSTAB(1)
π NAME π
apop_db_to_crosstab β a lil command line utility that takes a three-column table and turns it into a crosstab, no cap β¨ (this page lives in the Apophenia manual, section 1, bestie π«Ά)
πΈ SYNOPSIS πΈ
apop_db_to_crosstab [opts] dbname table_name rows columns data
π¦ DESCRIPTION π¦
Okay so first thing: this is a command-line wrapper for the apop_db_to_crosstab function π
Like, the function is the main character, this is her publicist. If you want the details and the little tricks, go read Apophenia's online documentation for that function β it's all there, fr fr π
So the tea on the data column: the default is a count, specifically count(*). And plot twist β that column is optional! Leave it out entirely if you want a single-dimensional crosstab. But if you need a non-default data column and you still want a 1-D crosstab? No problem, just use 1 as your column. Iconic, honestly π
Here's the flag lineup:
-dβ delimiter (default: tab) π-vβ verbose: prints status info onstderrπ-v -vβ very verbose: also prints the queries executed onstderrπ (yes queen, double it)-hβ display this help and exit π
Heads up bestie: the verbose output goes tostderr, notstdout, so don't go piping it into your crosstab and then wondering why it's spicy π
π SEE ALSO
It's giving β¨ see the online documentation for the apop_db_to_crosstab function for the details and tricks π
That's the whole vibe, babes. This gem is part of Apophenia (Debian ), and this page was born in January 2026 π©· Stay crosstabbed and slay π ππ
π¦ where this page comes from
- ubuntu resolute: apophenia-bin 1.0+ds-10ubuntu2 Β· GPL-2.0-only
- ubuntu stonking: apophenia-bin 1.0+ds-10ubuntu2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms