MySQL示例数据库

MySQL示例数据库

在本MySQL教程中,大部分操作是基于yiibaidb这个数据库作为学习MySQL示例数据库,这样的话有助于您快速有效地使用MySQL。yiibaidb数据库是一个典型汽车零售商数据库模型。它包含典型的业务数据,如客户,产品,销售订单,销售订单等。

我们在MySQL教程中使用此示例数据库来演示从简单查询到复杂存储过程的许多MySQL功能。

下载MySQL示例数据库

可以在以下链接中下载本MySQL教程所使用的示例数据库(yiibaidb)。

示例数据库下载地址:http://www.yiibai.com/downloads/yiibaidb.zip

在解压缩上面的文件后,可以将示例数据库导入到MySQL数据库服务器中,方法如下:将示例数据库导入到MySQL数据库服务器中,并使用以下SQL语句进行测试:

USE yiibaidb;
SELECT * FROM customers;

上面语句首先将当前数据库切换到yiibaidb数据库下,并从customers表查询数据。如果您看到返回的客户数据,说明已成功将示例数据库(yiibaidb)导入MySQL数据库服务器了。

MySQL示例数据库结构

MySQL示例数据库模式由以下表组成:

  • customers: 存储客户的数据。
  • products: 存储汽车的数据。
  • productLines: 存储产品类别数据。
  • orders: 存储客户订购的销售订单。
  • orderDetails: 存储每个销售订单的订单产品数据项。
  • payments: 存储客户订单的付款数据信息。
  • employees: 存储所有员工信息以及组织结构,例如,直接上级(谁向谁报告工作)。
  • offices: 存储销售处数据,类似于各个分公司。

表与表之间的关系,请参考以下ER图 –

我们建议您打印出此 ER 图,并将其粘贴到桌面上,以便在学习MySQL的过程中熟悉其中的表之间的关联关系。

 

移动端:请扫描本页面底部(右侧)二维码并关注微信公众号,回复:”教程” 选择相关教程阅读

112 Responses

  1. Mpbcik说道:

    warfarin medication – losartan order online buy cheap cozaar

  2. Mkqerw说道:

    cheap inderal 10mg – buy methotrexate generic methotrexate cost

  3. Eqhonu说道:

    motilium tablet – buy generic cyclobenzaprine online flexeril price

  4. Awifhr说道:

    buy generic domperidone online – buy tetracycline 250mg online cheap order cyclobenzaprine 15mg sale

  5. Edqrla说道:

    buy cytotec without a prescription – order orlistat 120mg sale order diltiazem online

  6. Dhvlvi说道:

    lipitor 40mg for sale – lisinopril 10mg usa order zestril 10mg generic

  7. Pyyxot说道:

    cenforce price – buy cenforce no prescription buy glycomet sale

  8. Mezery说道:

    sildenafil citrate 50 mg – order tadalafil 10mg pill usa pharmacy cialis

  9. Txgeuk说道:

    order rybelsus 14 mg online cheap – semaglutide ca buy cyproheptadine without prescription

  10. Uomzyl说道:

    brand clavulanate – buy amoxiclav online duloxetine medication

  11. Qmmfxn说道:

    monodox price – order monodox glipizide 10mg pill

  12. Xmabjv说道:

    buy furosemide pill – nootropil oral betnovate for sale

  13. Mjuloi说道:

    gabapentin where to buy – gabapentin 600mg drug buy sporanox sale

  14. Tkhyec说道:

    brand omnacortil 20mg – omnacortil 40mg price order generic prometrium 100mg

  15. Wylaiw说道:

    order azithromycin without prescription – order nebivolol oral bystolic

  16. Ijoqgu说道:

    oral amoxil – order diovan 160mg online cheap buy ipratropium no prescription

  17. Ttehmm说道:

    lexapro brand lexapro drug revia 50 mg sale

  18. Bzgpgw说道:

    buy clavulanate pill order serophene online clomiphene for sale online

  19. Ylpszj说道:

    buy cheap strattera order sertraline 50mg sale buy sertraline 100mg online cheap

  20. Rhqrfh说道:

    order generic furosemide 40mg doxycycline 100mg usa cheap albuterol

  21. Ppkgdw说道:

    cost actigall generic actigall cetirizine tablet

  22. Gpvgpj说道:

    is mylanta better than rolaids acid reflux medicine name what to take for flatulence

  23. Tqsyyg说道:

    order zithromax 250mg pill neurontin 800mg pills oral gabapentin

  24. Uuzjnq说道:

    buy birth control pills walgreens vitamin to increase women’s libido medications for early ejaculation

  25. Wkdvyy说道:

    buy deltasone 40mg sale oral prednisone 40mg buy amoxil 1000mg pill

  26. Aferbf说道:

    stomach ulcers medications list best online doctors for uti gram negative bacilli examples

  27. Atvzsn说道:

    promethazine 25mg over the counter how to buy phenergan where to buy ivermectin

  28. Urglow说道:

    strongest natural antifungal 4 types of antifungal medicaments high blood pressure treatment online

  29. Nugalc说道:

    cymbalta 40mg ca order provigil 100mg for sale order provigil 100mg online

  30. Yyzuiv说道:

    antiviral drugs uses expected findings type 2 diabetes best meds for pre diabetics

  31. Gxparv说道:

    cyproheptadine 4mg over the counter buy cyproheptadine 4mg sale buy nizoral 200 mg without prescription

  32. Gjxicn说道:

    free meds to quit smoking online doctors for pain medication buy strong painkillers online uk

  33. Rompjs说道:

    provera uk microzide usa hydrochlorothiazide without prescription

  34. Jeotqi说道:

    prescription drug for sleep olumiant approved for alopecia what is the strongest weight loss prescription pill

  35. Bgahma说道:

    buy letrozole cheap abilify 30mg generic aripiprazole 20mg pills

  36. Yidfij说道:

    buy alfuzosin cheap drugs for gerd prescription medication thats makes you puke

  37. Wwtuxs说道:

    acne treatment for teenage girl trileptal order online cost oxcarbazepine

  38. smeri说道:

    The perfect way to spend summer is at the beach. Well, if you can’t be at the beach right now, why not role play a beach day on Roblox? Take some photos and enjoy your time roleplaying with friends. Collect dozens of cute and exotic animals as you explore a magical island in DreamCraft’s massively popular social roleplay game Adopt Me. Build and customize your house. Raise your pets and teach them new tricks. Or simply hang out with your friends: go camping, throw a pool party, and so much more. There are multiple different roles to choose from in Emergency Response: Liberty County on its high player count servers. Players can be a DoT worker, a Police Officer, a Sheriff, a Firefighter, or a Hospital Worker. Players can also choose to play civilian roles, like being a Farmer, and can even be a Criminal who incites the emergencies that need responding to.
    https://socialsocial.social/user/gamersindia
    You can read more about the gameplay of one of the best games here. After many years, Charles Martinet has stepped down and will no longer be voicing Mario; he is now a Mario ambassador. Super Mario Bros. Wonder will welcome Kevin Afghani as the voice of Mario as well as his brother, Luigi. Mario vs. Donkey Kong was announced during today’s Nintendo Direct. Launching on February 16, this new title is the first entry in the Mario vs. Donkey Kong series to hit the Nintendo Switch and the latest in the series since its last entry in 2016. ROM sizes vary, but generally the newer the console, the bigger the file size. Super Mario Bros. 3, for instance, is only about 384KB, whereas Super Mario Sunshine reaches almost 1GB. Join Mario, Luigi, and pals for single-player or multiplayer* fun anytime, anywhere!

  39. Pksffp说道:

    rocaltrol 0.25mg sale trandate oral buy fenofibrate

  40. Nvnksg说道:

    catapres medication meclizine for sale online buy tiotropium medication

  41. Mtpfoa说道:

    dissertation writers online free money no deposit betting casino bonus

  42. Gjpbeb说道:

    trimox 250mg generic buy macrobid online purchase biaxin without prescription

  43. Ejnswi说道:

    order aspirin online slots games free best online poker sites

  44. Tpmetu说道:

    essays writing order suprax 200mg without prescription buy suprax 100mg pills

  45. Xilssv说道:

    order generic desyrel how to get clindac a without a prescription clindamycin uk

  46. Ydhwpm说道:

    buy generic ceftin 250mg cost lumigan robaxin 500mg ca

  47. Roodjr说道:

    buy cheap lamisil pennsylvania online gambling bill online black jack

  48. Wgvora说道:

    purchase nolvadex for sale symbicort inhalers where to buy symbicort without a prescription

  49. Ntvtzd说道:

    how to buy tadacip order indocin 75mg pills buy indomethacin 50mg sale

  50. Lwjviq说道:

    brand cleocin 300mg buy erythromycin 500mg online buy sildenafil 50mg for sale

  51. Esutlw说道:

    buy tretinoin tablets oral tadalis buy avanafil without prescription

  52. Hedpyz说道:

    buy flagyl 200mg for sale how to buy bactrim order keflex without prescription

  53. Wthxvv说道:

    order generic lamictal 50mg buy generic nemazole online vermox usa

  54. Glraox说道:

    cost diflucan 100mg ampicillin uk cipro without prescription

  55. Joasys说道:

    buy sildenafil 50mg for sale buy estradiol 2mg online estradiol 1mg without prescription

  56. Iqpmtk说道:

    spironolactone 25mg oral order spironolactone 25mg pills order propecia 5mg generic

  57. Oaavmx说道:

    write research papers college essay service cheap essay writer

  58. Rgvfdq说道:

    order generic tamsulosin 0.4mg buy tamsulosin pills for sale simvastatin order online

  59. Vegyko说道:

    order motilium 10mg generic order sumycin 250mg sale buy sumycin for sale

  60. Xapggo说道:

    zantac medication celebrex 100mg cheap buy cheap generic celecoxib

  61. Qzcelk说道:

    buspirone 10mg pills purchase amiodarone online order amiodarone 200mg generic

  62. Vzmebv说道:

    purchase imitrex pill imitrex online buy dutasteride medication

  63. Lphjgd说道:

    purchase zyloprim for sale order clobetasol generic cheap crestor 20mg

  64. Vpqddk说道:

    esomeprazole order order topiramate 200mg generic buy topiramate 200mg pill

  65. Gplahi说道:

    order famotidine pills famotidine online order prograf 1mg without prescription

  66. Srzmqt说道:

    astelin 10 ml ca buy generic azelastine online irbesartan 300mg pill

  67. Jovkuh说道:

    buy coumadin 2mg paxil 20mg sale order metoclopramide 20mg online

  68. Frtjsp说道:

    order xenical generic generic mesalamine diltiazem order

  69. Pdcbho说道:

    order nortriptyline 25 mg pills buy anacin 500 mg for sale order anacin generic

  70. Dwtoms说道:

    buy inderal 20mg without prescription buy inderal 20mg buy clopidogrel 75mg without prescription

  71. Cfjbam说道:

    buy fosamax 70mg sale order colcrys for sale purchase furadantin

  72. Qyajli说道:

    lioresal for sale order endep 50mg generic order generic toradol 10mg

  73. Purrcs说道:

    purchase glimepiride without prescription buy etoricoxib cheap cheap etoricoxib 60mg

  74. Ofxygt说道:

    purchase lioresal generic ketorolac for sale toradol 10mg price

  75. Bmxkrw说道:

    loratadine 10mg sale buy dapoxetine 60mg without prescription order generic dapoxetine 90mg

  76. Kjookw说道:

    dilantin 100 mg for sale ditropan 5mg sale ditropan online buy

  77. plags说道:

    You can email the site owner to let them know you were blocked. Please include what you were doing when this page came up and the Cloudflare Ray ID found at the bottom of this page. In The Hand of Midas ci sono due tipi di simboli. I primi sono le carte da gioco e hanno un basso valore. Gli altri sono simboli tematici e pagano piuttosto bene. Dal più basso al più alto troviamo: la coppa di vino, il cesto di frutta, il forziere colmo di monete, la figlia di Odino trasformata in una statua d’oro, il Dio Dionisio e infine il re Mida. Sul nostro sito puoi giocare alle slot online, senza spendere soldi e senza registrazione né deposito. Per chi volesse incrementare le chance di vittoria, si può scegliere di aggiungere un moltiplicatore di 20x o di 25x. Si possono inoltre comprare un numero variabile di giri gratis. Ci sono 3 opzioni:
    https://www.tool-bookmarks.win/siti-stranieri-bonus-senza-deposito
    Il Cabernet Sauvignon – come lo Chardonnay, varietà non riconosciuta dal disciplinare dell’epoca – fu impiantato per la prima volta in Sicilia nella Tenuta Regaleali nel 1985. E’ il primo Cabernet Sauvignon in purezza realizzato in Sicilia, pluripremiato per la sua personalità e per l’originalità con cui esprime il territorio da cui proviene, la Tenuta Regaleali. Rosso rubino intenso, al naso esprime la quintessenza del varietale, con un tocco mediterraneo, grazie ad aromi di frutti di bosco e sentori di spezie, pepe nero, tabacco, cannella, vaniglia. Al palato è ricco ed elegante, caratterizzato da tannini persistenti e morbidi, molto equilibrato e lunghissimo. Tasca d’Almerita Bignami vini e liquori Tasca d’Almerita 9,40 € Tasca d’Almerita Tenuta Regaleali Perricone Guarnaccio Sicilia DOC – Pz per Cartone: 6…..

  78. Coednd说道:

    vardenafil 20mg for sale buy cheap generic zanaflex purchase tizanidine for sale

  79. Kzxfew说道:

    buy aceon online aceon 8mg brand allegra 120mg pill

  80. Pbasfg说道:

    clomiphene drug imdur brand buy imuran for sale

  81. Vkliam说道:

    online casino buy levothyroxine without a prescription order levoxyl pills

  82. Inagkd说道:

    medrol cost in usa buy medrol canada order aristocort 10mg online cheap

  83. Frjxjz说道:

    best online casino for money stromectol online order ivermectin 5ml

  84. Dscmsw说道:

    buy amantadine 100mg sale buy atenolol generic aczone online buy

  85. Ovlkko说道:

    free slot play free casino slot games purchase albuterol for sale

  86. Svwvpr说道:

    online blackjack spins website gambling games purchase lasix sale

  87. Ynkmss说道:

    buy pantoprazole 20mg online order protonix 20mg online order phenazopyridine 200mg for sale

  88. Mzemda说道:

    azithromycin 500mg cost buy neurontin sale neurontin 600mg tablet

  89. Alkznp说道:

    accutane price isotretinoin 20mg pill azithromycin order

  90. Nrvugz说道:

    generic lipitor 40mg purchase lipitor online order norvasc pills

  91. Aozufi说道:

    modafinil 200mg uk buy cheap generic promethazine deltasone for sale online

  92. Popsvl说道:

    cefdinir 300 mg tablet purchase prevacid generic purchase lansoprazole

  93. Tmggyj说道:

    purchase cenforce naproxen 250mg us chloroquine 250mg uk

  94. Xjgsag说道:

    oral telmisartan plaquenil 400mg uk brand molnupiravir

  95. Ygtyky说道:

    cheap premarin 0.625mg purchase cabergoline pills sildenafil australia

  96. Waceos说道:

    prilosec 20mg sale omeprazole sale order metoprolol 50mg pill

  97. Ighmyo说道:

    brand latanoprost order capecitabine 500mg online order exelon 3mg generic

  98. Mvdfvu说道:

    generic betahistine 16mg buy haloperidol paypal order benemid 500mg

  99. Htmpwg说道:

    how to get pyridostigmine without a prescription buy generic piroxicam 20mg maxalt canada

  100. Lcwvqe说道:

    how to get vasotec without a prescription vasotec over the counter order duphalac

  101. Jayads说道:

    ferrous 100mg ca buy betapace 40 mg generic buy betapace medication

  102. Xujkmc说道:

    etodolac 600 mg price cilostazol 100mg price generic pletal

  103. Kkvnqs说道:

    purchase prasugrel pills dimenhydrinate order buy detrol 1mg for sale

  104. Zgbyjv说道:

    dydrogesterone pill order januvia generic purchase empagliflozin online

  105. Gudnna说道:

    fludrocortisone 100mcg for sale pill loperamide 2 mg order imodium without prescription

  106. Efevsb说道:

    order generic melatonin desogestrel tablet danazol where to buy

  107. Ovfxvm说道:

    aspirin 75mg usa buy levoflox 250mg online buy zovirax cream for sale

  108. Qpthzk说道:

    order dipyridamole online cheap pravastatin 20mg pills buy pravachol pills

  109. Wzhvck说道:

    how to buy mintop minoxidil online ed pills online

  110. Wiwxxx说道:

    cost acarbose buy generic acarbose for sale order griseofulvin 250 mg sale

  111. Dybcss说道:

    cialis tadalafil cheap generic sildenafil cheap sildenafil 100mg

  112. Nubncw说道:

    tricor over the counter order tricor 160mg generic fenofibrate price

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注