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的过程中熟悉其中的表之间的关联关系。

 

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

114 Responses

  1. Hlnpys说道:

    order meloxicam 7.5mg without prescription – tamsulosin 0.4mg oral order flomax 0.2mg pill

  2. Uoivnn说道:

    buy generic esomeprazole over the counter – buy imitrex generic buy imitrex 50mg online cheap

  3. Mpbcik说道:

    warfarin medication – losartan order online buy cheap cozaar

  4. Mkqerw说道:

    cheap inderal 10mg – buy methotrexate generic methotrexate cost

  5. Eqhonu说道:

    motilium tablet – buy generic cyclobenzaprine online flexeril price

  6. Awifhr说道:

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

  7. Edqrla说道:

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

  8. Dhvlvi说道:

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

  9. Pyyxot说道:

    cenforce price – buy cenforce no prescription buy glycomet sale

  10. Mezery说道:

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

  11. Txgeuk说道:

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

  12. Uomzyl说道:

    brand clavulanate – buy amoxiclav online duloxetine medication

  13. Qmmfxn说道:

    monodox price – order monodox glipizide 10mg pill

  14. Xmabjv说道:

    buy furosemide pill – nootropil oral betnovate for sale

  15. Mjuloi说道:

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

  16. Tkhyec说道:

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

  17. Wylaiw说道:

    order azithromycin without prescription – order nebivolol oral bystolic

  18. Ijoqgu说道:

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

  19. Ttehmm说道:

    lexapro brand lexapro drug revia 50 mg sale

  20. Bzgpgw说道:

    buy clavulanate pill order serophene online clomiphene for sale online

  21. Ylpszj说道:

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

  22. Rhqrfh说道:

    order generic furosemide 40mg doxycycline 100mg usa cheap albuterol

  23. Ppkgdw说道:

    cost actigall generic actigall cetirizine tablet

  24. Gpvgpj说道:

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

  25. Tqsyyg说道:

    order zithromax 250mg pill neurontin 800mg pills oral gabapentin

  26. Uuzjnq说道:

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

  27. Wkdvyy说道:

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

  28. Aferbf说道:

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

  29. Atvzsn说道:

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

  30. Urglow说道:

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

  31. Nugalc说道:

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

  32. Yyzuiv说道:

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

  33. Gxparv说道:

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

  34. Gjxicn说道:

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

  35. Rompjs说道:

    provera uk microzide usa hydrochlorothiazide without prescription

  36. Jeotqi说道:

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

  37. Bgahma说道:

    buy letrozole cheap abilify 30mg generic aripiprazole 20mg pills

  38. Yidfij说道:

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

  39. Wwtuxs说道:

    acne treatment for teenage girl trileptal order online cost oxcarbazepine

  40. 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!

  41. Pksffp说道:

    rocaltrol 0.25mg sale trandate oral buy fenofibrate

  42. Nvnksg说道:

    catapres medication meclizine for sale online buy tiotropium medication

  43. Mtpfoa说道:

    dissertation writers online free money no deposit betting casino bonus

  44. Gjpbeb说道:

    trimox 250mg generic buy macrobid online purchase biaxin without prescription

  45. Ejnswi说道:

    order aspirin online slots games free best online poker sites

  46. Tpmetu说道:

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

  47. Xilssv说道:

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

  48. Ydhwpm说道:

    buy generic ceftin 250mg cost lumigan robaxin 500mg ca

  49. Roodjr说道:

    buy cheap lamisil pennsylvania online gambling bill online black jack

  50. Wgvora说道:

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

  51. Ntvtzd说道:

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

  52. Lwjviq说道:

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

  53. Esutlw说道:

    buy tretinoin tablets oral tadalis buy avanafil without prescription

  54. Hedpyz说道:

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

  55. Wthxvv说道:

    order generic lamictal 50mg buy generic nemazole online vermox usa

  56. Glraox说道:

    cost diflucan 100mg ampicillin uk cipro without prescription

  57. Joasys说道:

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

  58. Iqpmtk说道:

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

  59. Oaavmx说道:

    write research papers college essay service cheap essay writer

  60. Rgvfdq说道:

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

  61. Vegyko说道:

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

  62. Xapggo说道:

    zantac medication celebrex 100mg cheap buy cheap generic celecoxib

  63. Qzcelk说道:

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

  64. Vzmebv说道:

    purchase imitrex pill imitrex online buy dutasteride medication

  65. Lphjgd说道:

    purchase zyloprim for sale order clobetasol generic cheap crestor 20mg

  66. Vpqddk说道:

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

  67. Gplahi说道:

    order famotidine pills famotidine online order prograf 1mg without prescription

  68. Srzmqt说道:

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

  69. Jovkuh说道:

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

  70. Frtjsp说道:

    order xenical generic generic mesalamine diltiazem order

  71. Pdcbho说道:

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

  72. Dwtoms说道:

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

  73. Cfjbam说道:

    buy fosamax 70mg sale order colcrys for sale purchase furadantin

  74. Qyajli说道:

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

  75. Purrcs说道:

    purchase glimepiride without prescription buy etoricoxib cheap cheap etoricoxib 60mg

  76. Ofxygt说道:

    purchase lioresal generic ketorolac for sale toradol 10mg price

  77. Bmxkrw说道:

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

  78. Kjookw说道:

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

  79. 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…..

  80. Coednd说道:

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

  81. Kzxfew说道:

    buy aceon online aceon 8mg brand allegra 120mg pill

  82. Pbasfg说道:

    clomiphene drug imdur brand buy imuran for sale

  83. Vkliam说道:

    online casino buy levothyroxine without a prescription order levoxyl pills

  84. Inagkd说道:

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

  85. Frjxjz说道:

    best online casino for money stromectol online order ivermectin 5ml

  86. Dscmsw说道:

    buy amantadine 100mg sale buy atenolol generic aczone online buy

  87. Ovlkko说道:

    free slot play free casino slot games purchase albuterol for sale

  88. Svwvpr说道:

    online blackjack spins website gambling games purchase lasix sale

  89. Ynkmss说道:

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

  90. Mzemda说道:

    azithromycin 500mg cost buy neurontin sale neurontin 600mg tablet

  91. Alkznp说道:

    accutane price isotretinoin 20mg pill azithromycin order

  92. Nrvugz说道:

    generic lipitor 40mg purchase lipitor online order norvasc pills

  93. Aozufi说道:

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

  94. Popsvl说道:

    cefdinir 300 mg tablet purchase prevacid generic purchase lansoprazole

  95. Tmggyj说道:

    purchase cenforce naproxen 250mg us chloroquine 250mg uk

  96. Xjgsag说道:

    oral telmisartan plaquenil 400mg uk brand molnupiravir

  97. Ygtyky说道:

    cheap premarin 0.625mg purchase cabergoline pills sildenafil australia

  98. Waceos说道:

    prilosec 20mg sale omeprazole sale order metoprolol 50mg pill

  99. Ighmyo说道:

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

  100. Mvdfvu说道:

    generic betahistine 16mg buy haloperidol paypal order benemid 500mg

  101. Htmpwg说道:

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

  102. Lcwvqe说道:

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

  103. Jayads说道:

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

  104. Xujkmc说道:

    etodolac 600 mg price cilostazol 100mg price generic pletal

  105. Kkvnqs说道:

    purchase prasugrel pills dimenhydrinate order buy detrol 1mg for sale

  106. Zgbyjv说道:

    dydrogesterone pill order januvia generic purchase empagliflozin online

  107. Gudnna说道:

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

  108. Efevsb说道:

    order generic melatonin desogestrel tablet danazol where to buy

  109. Ovfxvm说道:

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

  110. Qpthzk说道:

    order dipyridamole online cheap pravastatin 20mg pills buy pravachol pills

  111. Wzhvck说道:

    how to buy mintop minoxidil online ed pills online

  112. Wiwxxx说道:

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

  113. Dybcss说道:

    cialis tadalafil cheap generic sildenafil cheap sildenafil 100mg

  114. Nubncw说道:

    tricor over the counter order tricor 160mg generic fenofibrate price

发表回复

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