Commit c0a5bf4c authored by O'Reilly Media, Inc.'s avatar O'Reilly Media, Inc.
Browse files

Initial commit

parents
Loading
Loading
Loading
Loading

9780596527082

0 → 120000
+1 −0
Changes for 9780596527082: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
9780596527082
 No newline at end of file

README.md

0 → 100644
+15 −0
Changes for README.md: 15 added lines, 0 removed lines.
Original line number Diff line number Diff line
## Example files for the title:  
	  
# MySQL Cookbook 2nd Edition, by Paul DuBois
	  
[![MySQL Cookbook 2nd Edition, by Paul DuBois](http://akamaicovers.oreilly.com/images/9780596527082/cat.gif)](https://www.safaribooksonline.com/library/view/title/059652708X//)
	  
The following applies to example files from material published by O’Reilly Media, Inc. Content from other publishers may include different rules of usage. Please refer to any additional usage rights explained in the actual example files or refer to the publisher’s website.
	  
O'Reilly books are here to help you get your job done. In general, you may use the code in O'Reilly books in your programs and documentation. You do not need to contact us for permission unless you're reproducing a significant portion of the code. For example, writing a program that uses several chunks of code from our books does not require permission. Answering a question by citing our books and quoting example code does not require permission. On the other hand, selling or distributing a CD-ROM of examples from O'Reilly books does require permission. Incorporating a significant amount of example code from our books into your product's documentation does require permission.
	  
We appreciate, but do not require, attribution. An attribution usually includes the title, author, publisher, and ISBN.
	  
If you think your use of code examples falls outside fair use or the permission given here, feel free to contact us at <permissions@oreilly.com>.
	  
Please note that the examples are not production code and have not been carefully testing. They are provided "as-is" and come with no warranty of any kind.

logo.png

0 → 100644
+4.94 KiB
Loading image diff...

mcb-kjv/Changes.txt

0 → 100644
+11 −0
Changes for mcb-kjv/Changes.txt: 11 added lines, 0 removed lines.
Original line number Diff line number Diff line
This file lists changes to the mcb-kjv distribution, in reverse
chronological order.

Version 1.02 (2002-11-01)
- Add phrase searching and record-count-only options to kjv.pl.

Version 1.01 (2002-10-24)
- Added missing mention of escapeHTML in "use CGI" statement in kjv.pl.

Version 1.00 (2002-09-10)
- Initial release.

mcb-kjv/README.txt

0 → 100644
+60 −0
Changes for mcb-kjv/README.txt: 60 added lines, 0 removed lines.
Original line number Diff line number Diff line
mcb-kjv - Files for the MySQL Cookbook KJV distribution

Paul DuBois
paul@kitebird.com

This distribution contains some of the files for the examples in the
MySQL Cookbook that use the kjv table containing the text of the King
James Version of the Bible.

kjv.txt - Text file containing KJV data to be loaded into the kjv table
kjv.sql - SQL script to create the kjv table
load_kjv.sql - SQL script to load kjv.txt into kjv.sql
index_kjv.sql - SQL script to add indexes to the kjv table (use after
  loading data into the table)

Use the files as follows (I assume you have created a cookbook database
already, as per the instructions in the Cookbook):

% mysql cookbook < kjv.sql
% mysql cookbook < load_kjv.sql
% mysql cookbook < index_kjv.sql

If you want to use the kjv.pl search script, you'll also need to create
the kjv_bookmap tables, which involves these files:

kjv_bookmap.txt - Text file containing book number-to-name mapping
kjv_bookmap.sql - SQL script to create the kjv_bookmap table
load_kjv_bookmap.sql - SQL script to load kjv_bookmap.txt into kjv_bookmap.sql

Use the files as follows:

% mysql cookbook < kjv_bookmap.sql
% mysql cookbook < load_kjv_bookmap.sql

Then install kjv.pl in your Web server's script directory.  (The script
requires a library file, Cookbook.pm, from the MySQL Cookbook recipes
distribution.)

The kjv.txt file was created from the version of the KJV that is available
at the Unbound Bible Project at Biola University. See:
	http://unbound.biola.edu/
	http://unbound.biola.edu/zips/index.cfm?lang=English

The MySQL Cookbook distribution has been modified somewhat to make it
easier to use for FULLTEXT searching.  Differences between the Biola
and Cookbook KJV distributions are as follows:

- Biola represents books using book ID values consisting of a number
  followed by a letter.  The number is a two-digit value from 01 to
  86 representing the index of the book within the file.  (01 to 39 are
  for Old Testament books, 40 through 66 are New Testament books, and
  67 through 86 are books of the Apocrypha).  The letter is O (Old
  Testament), N (New Testament), or A (Apocrypha).
- The Cookbook uses separate book number and book section columns,
  and the numbers are not zero-filled.
- The Cookbook does not include any Apocrypha books, so book numbers
  range from 1 to 66.
- The Cookbook includes book names (Genesis, Exodus, etc.) as well as
  the numbers.  This makes the dataset non-normal, but avoids the
  need for a join to display book names in search results.
Loading