如果需要在修改列数据类型期间对数据库执行写访问,可以使用下一小节描述的ADMIN_MOVE_TABLE例程。
If you need to have write access to the database available while column data type is changed, you can use of ADMIN_MOVE_TABLE routine described in the next section.
清单4显示了除使用静态列外,还可以向帐户编号字段添加简单验证例程以确保输入值不是非数字值。
Listing 4 shows an example of the power of adding a simple validation routine to the account number field to make sure it cannot be a non-number in addition to using static columns.
loadmetaphones子例程是创建变音位关键字和值的两个散列的简单代码。
The loadMetaPhones subroutine is straightforward code that creates two hashes of metaphone keys and values.
Python的readlines例程用于将一个文件的所有行读取到一列字符串中。
Python's readlines routine is used to read all lines in a file into a list of strings.
声明局部变量后,子例程将遍历每个指定查询词,搜索name或jobresponsibilities散列中的变音位匹配。
After the local variable declaration, the subroutine will make a pass through every query word specified searching for a metaphone match in the name or jobresponsibilities hashes.
如果提供清单4中所示格式的数据文件,loadinflectives子例程将构建字母数字语音散列。
Given a data file of the format shown in Listing 4, the loadInflectives subroutine builds an alphanumeric phonetic hash.
如果提供清单4中所示格式的数据文件,loadinflectives子例程将构建字母数字语音散列。
Given a data file of the format shown in Listing 4, the loadInflectives subroutine builds an alphanumeric phonetic hash.
应用推荐