ดาวน์โหลดบทความดาวน์โหลดบทความ

บทความวิกิฮาวนี้จะแนะนำวิธีการเปิดและดูเนื้อหาของไฟล์ข้อมูลสกุล SQL (Structured Query Language) ให้คุณเอง โดยไฟล์ SQL นั้นจะมีโค้ดเฉพาะไว้ปรับแต่งเนื้อหาของฐานข้อมูลเชิงสัมพันธ์ (relational database) และโครงสร้างฐานข้อมูล ให้เปิดไฟล์ SQL ใน MySQL Workbench ถ้าจะใช้ tools ของ MySQL พัฒนา บริหารดูแล ออกแบบฐานข้อมูล และดูแล task อื่นๆ แต่ถ้าแค่จะเปิดดูเนื้อหา และแก้ไขโค้ดเองแบบทันใจ ให้ใช้ text editor ทั่วไปอย่าง Notepad และ TextEdit

วิธีการ 1
วิธีการ 1 ของ 2:

ใช้ MySQL Workbench

ดาวน์โหลดบทความ
  1. How.com.vn ไท: Step 1 เปิดแอพ MySQL Workbench ในคอม.
    ไอคอน MySQL Workbench จะเป็นสี่เหลี่ยมสีฟ้า มีโลมาข้างใน ปกติอยู่ในเมนู Start ของ Windows หรือในโฟลเดอร์ Applications ของ Mac
    • ถ้าไม่ได้ติดตั้ง MySQL Workbench ไว้ในคอม ให้เลือกระบบที่ใช้ แล้วดาวน์โหลดไฟล์ติดตั้งของแอพจาก https://dev.mysql.com/downloads/workbench
  2. Step 2 ดับเบิลคลิก model หรือ database ใน "MySQL Connections".
    ปกติคุณหา model ที่ใช้ได้ตรงนี้ แค่ดับเบิลคลิก model ที่ใช้
  3. How.com.vn ไท: Step 3 คลิก tab File ทางซ้ายบน.
    ที่เป็นปุ่มมุมซ้ายบนของหน้าจอ แล้วเมนูจะขยายลงมา
  4. How.com.vn ไท: Step 4 คลิก Open SQL Script ในเมนู File.
    เพื่อเปิดหน้าต่าง file navigator ใหม่ แล้วจะเลือกไฟล์ SQL ที่จะเปิดได้
    • คุณกด Ctrl+ Shift+O (Windows) หรือ Cmd+ Shift+O (Mac) ที่คีย์บอร์ดได้ด้วย
  5. How.com.vn ไท: Step 5 ค้นหาแล้วคลิกไฟล์ SQL ที่จะเปิด.
    ให้ค้นหาไฟล์ SQL ในหน้าต่าง file navigator แล้วคลิกชื่อเพื่อเลือกไฟล์
  6. How.com.vn ไท: Step 6 คลิก Open ทางขวาล่าง.
    ที่เป็นปุ่มมุมขวาล่างของหน้าต่าง file navigator เพื่อเปิดเนื้อหาไฟล์ SQL ในแอพ MySQL Workbench
    • คุณดูและแก้ไขสคริปต์ SQL ตรงนี้ได้ด้วย
    โฆษณา
วิธีการ 2
วิธีการ 2 ของ 2:

ใช้ Text Editor

ดาวน์โหลดบทความ
  1. How.com.vn ไท: Step 1 ค้นหาแล้วคลิกขวาที่ไฟล์ SQL.
    เพื่อเปิดตัวเลือกคลิกขวา เป็นเมนูที่ขยายลงมา
  2. How.com.vn ไท: Step 2 จ่อเมาส์ที่ Open with ในเมนูคลิกขวา.
    เพื่อเปิดรายชื่อแอพแนะนำ สำหรับใช้เปิดไฟล์นี้
  3. How.com.vn ไท: Step 3 เลือก Notepad (Windows) หรือ TextEdit (Mac).
    เพื่อเปิดไฟล์ SQL ใน text editor แล้วดูและแก้ไขสคริปต์ SQL ใน text editor ตามสะดวก
    • ถ้าไม่เจอ Notepad หรือ TextEdit ให้คลิก Choose another app หรือ Other ด้านล่าง เพื่อเปิดรายชื่อแอพทั้งหมด
    โฆษณา

เกี่ยวกับวิกิฮาวนี้

How.com.vn ไท: ทีมงานวิกิฮาว
ร่วมเขียน โดย:
นักเขียนในทีมวิกิฮาว
บทความนี้ร่วมเขียนโดยเหล่าบรรณาธิการและนักวิจัยที่ผ่านการฝึกฝนมาเพื่อความถูกต้องและครอบคลุมของเนื้อหา

ทีมผู้จัดการด้านเนื้อหาของวิกิฮาว จะตรวจตราผลงานจากทีมงานด้านเนื้อหาของเราเพื่อความมั่นใจว่าบทความทุกชิ้นได้มาตรฐานตามที่เราตั้งไว้ บทความนี้ถูกเข้าชม 7,297 ครั้ง
หมวดหมู่: ซอฟท์แวร์
มีการเข้าถึงหน้านี้ 7,297 ครั้ง

บทความนี้เป็นประโยชน์กับคุณไหม

⚠️ Disclaimer:

Content from Wiki How ไท language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

Notices:
  • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
  • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
  • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
  • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

โฆษณา