Skip to Content
MySQL, 5th Edition
book

MySQL, 5th Edition

by Paul DuBois
April 2013
Intermediate to advanced
1276 pages
42h 16m
English
Addison-Wesley Professional
Content preview from MySQL, 5th Edition
8.3.1.1. Generating the Plain Text Member List

The text output format requires no initialization or cleanup calls. We need only an entry-formatting function, text_format_entry(), that takes a reference to a member entry and prints the member’s name. The tricky part of printing names is dealing with the suffix part. A suffix such as “Jr.” or “Sr.” is preceded by a comma and a space, whereas a suffix such as “II” or “III” is preceded only by a space:

Michael Alvis IV Clarence Elgar, Jr. Bill Matthews, Sr. Mark York II

‘I’, ‘V’, and ‘X’ are the only letters used in the roman numerals for the 1st to the 39th generation. It’s unlikely that we’ll need any numerals beyond that range, so we can determine whether to add a comma by checking the suffix ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

MySQL Cookbook, 3rd Edition

MySQL Cookbook, 3rd Edition

Paul DuBois
MySQL Cookbook, 4th Edition

MySQL Cookbook, 4th Edition

Sveta Smirnova, Alkin Tezuysal
Learning MySQL, 2nd Edition

Learning MySQL, 2nd Edition

Vinicius M. Grippa, Sergey Kuzmichev
SQL Cookbook, 2nd Edition

SQL Cookbook, 2nd Edition

Anthony Molinaro, Robert de Graaf

Publisher Resources

ISBN: 9780133038552Purchase book