Download "Creating Databases for Biological Information: An Introduction". In
Transcript
Table 9.2.6 MySQL Comparison Operatorsa Class Grouping Unary Operator ( ) + Description Groups a complex expression Positive numeric value ~ Negative numeric value Bitwise complement of number Mathematical * / Multiplication Division Arithmetic + - Addition Subtraction Comparison = > Equal to Greater than Bitwise Logical < >= Less than Greater or equal to <= <> Less than or equal to Not equal to != !> Not equal to Not greater than !< | Not less than Bitwise OR & << Bitwise AND Shift left >> ~ Shift right Invert bits NOT AND BETWEEN IN LIKE OR Assignment = Inverts meaning Logical AND Value within specified range Value in list Pattern matching Logical OR Place value on right into variable aOperator groups are listed by order of precedence. Operator precedence within a group varies, either following the order listed or having left-to-right precedence. The output that will be displayed upon submitting this command is shown in Figure 9.2.9. This query is identical to the one in step 5, except it has an added constraint with the AND operator. Not surprisingly, now half as many primers are returned as before (since the experiments employ primer pairs). 7. As selection clauses get more complex, they need to have some rules of precedence to remove ambiguities. The rules of precedence are similar to those learned in algebra to understand that the equation 5 + 3 × 4 should be equal to 17 rather than 32. The operators in Table 9.2.6 are grouped into order of operation, from highest to lowest. As in algebra, it is possible to use parentheses to group operands and alter the order of execution. For example, to return the forward primers for either protocol 2 or protocol 3, write: Building Biological Databases 9.2.19 Current Protocols in Bioinformatics