javascript BDD 5 - Les联合会

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了javascript BDD 5 - Les联合会相关的知识,希望对你有一定的参考价值。

mysql> SELECT wizard.lastname as lastname, wizard.firstname as firstname, player.role as role, team.name as name 
    -> FROM player JOIN wizard ON player.wizard_id=wizard.id JOIN team ON player.team_id=team.id ORDER BY name, role, lastname, firstname ASC;
+-----------------+-------------+--------+------------+
| lastname        | firstname   | role   | name       |
+-----------------+-------------+--------+------------+
| Black           | Sirius      | beater | Gryffindor |
| Brown           | Lavender    | beater | Gryffindor |
| Finnigan        | Seamus      | beater | Gryffindor |
| Hagrid          | Rubeus      | beater | Gryffindor |
| Longbottom      | Alice       | beater | Gryffindor |
| McGonagall      | Minerva     | beater | Gryffindor |
| Potter          | Harry       | beater | Gryffindor |
| Potter          | James       | beater | Gryffindor |
| Thomas          | Dean        | beater | Gryffindor |
| Weasley         | Arthur      | beater | Gryffindor |
| Weasley         | Percy       | beater | Gryffindor |
| Bell            | Katie       | chaser | Gryffindor |
| Dumbledore      | Albus       | chaser | Gryffindor |
| Granger         | Hermione    | chaser | Gryffindor |
| J.              | Lily        | chaser | Gryffindor |
| Jordan          | Lee         | chaser | Gryffindor |
| Longbottom      | Augusta     | chaser | Gryffindor |
| Longbottom      | Frank       | chaser | Gryffindor |
| Longbottom      | Neville     | chaser | Gryffindor |
| Pettigrew       | Peter       | chaser | Gryffindor |
| Spinnet         | Alicia      | chaser | Gryffindor |
| Weasley         | George      | chaser | Gryffindor |
| Wood            | Oliver      | chaser | Gryffindor |
|                 | Cadogan     | keeper | Gryffindor |
| Creevey         | Dennis      | keeper | Gryffindor |
| de              | Nicholas    | keeper | Gryffindor |
| Dumbledore      | Aberforth   | keeper | Gryffindor |
| Johnson         | Angelina    | keeper | Gryffindor |
| Weasley         | Ginevra     | keeper | Gryffindor |
| Binns           | Cuthbert    | seeker | Gryffindor |
| Creevey         | Colin       | seeker | Gryffindor |
| Gryffindor      | Godric      | seeker | Gryffindor |
| Vane            | Romilda     | seeker | Gryffindor |
| Weasley         | Fred        | seeker | Gryffindor |
| Weasley         | Ronald      | seeker | Gryffindor |
| Weasley         | William     | seeker | Gryffindor |
| Abbott          | Hannah      | beater | Hufflepuff |
| Finch-Fletchley | Justin      | beater | Hufflepuff |
| Friar           | Fat         | beater | Hufflepuff |
| Smith           | Hepzibah    | beater | Hufflepuff |
| Sprout          | Pomona      | beater | Hufflepuff |
| Tonks           | Nymphadora  | beater | Hufflepuff |
| Bones           | Amelia      | chaser | Hufflepuff |
| Scamander       | Newton      | chaser | Hufflepuff |
| Bones           | Susan       | keeper | Hufflepuff |
| Diggory         | Cedric      | keeper | Hufflepuff |
| Smith           | Zacharias   | keeper | Hufflepuff |
| Hufflepuff      | Helga       | seeker | Hufflepuff |
| Clearwater      | Penelope    | beater | Ravenclaw  |
| Quirrell        | Quirinus    | beater | Ravenclaw  |
| Ravenclaw       | Helena      | beater | Ravenclaw  |
| Warren          | Myrtle      | beater | Ravenclaw  |
| Chang           | Cho         | chaser | Ravenclaw  |
| Edgecombe       | Marietta    | chaser | Ravenclaw  |
| Flitwick        | Filius      | chaser | Ravenclaw  |
| Goldstein       | Anthony     | chaser | Ravenclaw  |
| Lockhart        | Gilderoy    | chaser | Ravenclaw  |
| Lovegood        | Luna        | chaser | Ravenclaw  |
| Lovegood        | Xenophilius | chaser | Ravenclaw  |
| Ollivander      | Garrick     | chaser | Ravenclaw  |
| Corner          | Michael     | seeker | Ravenclaw  |
| Ravenclaw       | Rowena      | seeker | Ravenclaw  |
| Trelawney       | Sybill      | seeker | Ravenclaw  |
| Bulstrode       | Millicent   | beater | Slytherin  |
| Crabbe          | Vincent     | beater | Slytherin  |
| Flint           | Marcus      | beater | Slytherin  |
| Parkinson       | Pansy       | beater | Slytherin  |
| Snape           | Severus     | beater | Slytherin  |
| Zabini          | Blaise      | beater | Slytherin  |
| Baron           | Bloody      | chaser | Slytherin  |
| Lestrange       | Bellatrix   | chaser | Slytherin  |
| Lestrange       | Rodolphus   | chaser | Slytherin  |
| Malfoy          | Draco       | chaser | Slytherin  |
| Malfoy          | Lucius      | chaser | Slytherin  |
| Nigellus        | Phineas     | chaser | Slytherin  |
| Nott            | Theodore    | chaser | Slytherin  |
| Riddle          | Tom         | chaser | Slytherin  |
| Tonks           | Andromeda   | chaser | Slytherin  |
| Black           | Regulus     | keeper | Slytherin  |
| Goyle           | Gregory     | seeker | Slytherin  |
| Lestrange       | Rabastan    | seeker | Slytherin  |
| Malfoy          | Narcissa    | seeker | Slytherin  |
| Slytherin       | Salazar     | seeker | Slytherin  |
| Umbridge        | Dolores     | seeker | Slytherin  |
+-----------------+-------------+--------+------------+
84 rows in set (0,02 sec)

mysql> SELECT wizard.lastname as lastname, wizard.firstname as firstname FROM player JOIN wizard ON player.wizard_id=wizard.id WHERE role = 'seeker' ORDER BY lastname, firstname ASC;
+------------+-----------+
| lastname   | firstname |
+------------+-----------+
| Binns      | Cuthbert  |
| Corner     | Michael   |
| Creevey    | Colin     |
| Goyle      | Gregory   |
| Gryffindor | Godric    |
| Hufflepuff | Helga     |
| Lestrange  | Rabastan  |
| Malfoy     | Narcissa  |
| Ravenclaw  | Rowena    |
| Slytherin  | Salazar   |
| Trelawney  | Sybill    |
| Umbridge   | Dolores   |
| Vane       | Romilda   |
| Weasley    | Fred      |
| Weasley    | Ronald    |
| Weasley    | William   |
+------------+-----------+
16 rows in set (0,00 sec)

mysql> SELECT * FROM wizard
    -> WHERE id NOT IN (SELECT wizard_id FROM player);
+------+-----------+----------+
| id   | firstname | lastname |
+------+-----------+----------+
|    9 | Terry     | Boot     |
|   15 | Crabbe    |          |
|   45 | Remus     | Lupin    |
|   53 | Padma     | Patil    |
|   54 | Parvati   | Patil    |
|   63 | Demelza   | Robins   |
|   65 | Horace    | Slughorn |
|   80 | Charles   | Weasley  |
|   84 | Molly     | Weasley  |
+------+-----------+----------+
9 rows in set (0,01 sec)

以上是关于javascript BDD 5 - Les联合会的主要内容,如果未能解决你的问题,请参考以下文章

一个简单的用于JavaScript的BDD(行为驱动开发)库。

javascript Cacher Ancre dans les liens

javascript mais les 1 er lettre en majuscule sur une phrase

5大供应商级联操作

子资源完整性对内联 JavaScript 有用吗?

javascript 选择 。动态爱情,级联爱情