Note the following:The exact output will vary depending on the databas การแปล - Note the following:The exact output will vary depending on the databas ไทย วิธีการพูด

Note the following:The exact output

Note the following:

The exact output will vary depending on the database you are using. The example above is generated for PostgreSQL.
Table names are automatically generated by combining the name of the app (polls) and the lowercase name of the model – question and choice. (You can override this behavior.)
Primary keys (IDs) are added automatically. (You can override this, too.)
By convention, Django appends "_id" to the foreign key field name. (Yes, you can override this, as well.)
The foreign key relationship is made explicit by a FOREIGN KEY constraint. Don’t worry about the DEFERRABLE parts; that’s just telling PostgreSQL to not enforce the foreign key until the end of the transaction.
It’s tailored to the database you’re using, so database-specific field types such as auto_increment (MySQL), serial (PostgreSQL), or integer primary key autoincrement (SQLite) are handled for you automatically. Same goes for the quoting of field names – e.g., using double quotes or single quotes.
The sqlmigrate command doesn’t actually run the migration on your database - it just prints it to the screen so that you can see what SQL Django thinks is required. It’s useful for checking what Django is going to do or if you have database administrators who require SQL scripts for changes.
If you’re interested, you can also run python manage.py check; this checks for any problems in your project without making migrations or touching the database.

Now, run migrate again to create those model tables in your database:
0/5000
จาก: -
เป็น: -
ผลลัพธ์ (ไทย) 1: [สำเนา]
คัดลอก!
Note the following:The exact output will vary depending on the database you are using. The example above is generated for PostgreSQL.Table names are automatically generated by combining the name of the app (polls) and the lowercase name of the model – question and choice. (You can override this behavior.)Primary keys (IDs) are added automatically. (You can override this, too.)By convention, Django appends "_id" to the foreign key field name. (Yes, you can override this, as well.)The foreign key relationship is made explicit by a FOREIGN KEY constraint. Don’t worry about the DEFERRABLE parts; that’s just telling PostgreSQL to not enforce the foreign key until the end of the transaction.It’s tailored to the database you’re using, so database-specific field types such as auto_increment (MySQL), serial (PostgreSQL), or integer primary key autoincrement (SQLite) are handled for you automatically. Same goes for the quoting of field names – e.g., using double quotes or single quotes.The sqlmigrate command doesn’t actually run the migration on your database - it just prints it to the screen so that you can see what SQL Django thinks is required. It’s useful for checking what Django is going to do or if you have database administrators who require SQL scripts for changes.If you’re interested, you can also run python manage.py check; this checks for any problems in your project without making migrations or touching the database.Now, run migrate again to create those model tables in your database:
การแปล กรุณารอสักครู่..
ผลลัพธ์ (ไทย) 2:[สำเนา]
คัดลอก!
ทราบต่อไปนี้: เอาท์พุทที่แน่นอนจะแตกต่างกันขึ้นอยู่กับฐานข้อมูลที่คุณกำลังใช้ ตัวอย่างข้างต้นจะถูกสร้างขึ้นสำหรับ PostgreSQL. ชื่อตารางที่สร้างขึ้นโดยอัตโนมัติโดยการรวมชื่อของ app (โพลล์) และชื่อตัวพิมพ์เล็กของรูปแบบ - คำถามและทางเลือก (คุณสามารถยกเลิกการทำงานนี้.) คีย์หลัก (รหัส) จะถูกเพิ่มโดยอัตโนมัติ (คุณสามารถแทนที่นี้เกินไป.) โดยการประชุม Django ผนวก "_id" กับชื่อเขตต่างประเทศที่สำคัญ (ใช่คุณสามารถแทนที่นี้เช่นกัน.) ความสัมพันธ์ต่างประเทศที่สำคัญจะทำอย่างชัดเจนโดยข้อ จำกัด ที่สำคัญของต่างประเทศ ไม่ต้องกังวลเกี่ยวกับชิ้นส่วน DEFERRABLE นั้น ที่เพียงแค่บอก PostgreSQL ไม่บังคับใช้คีย์ต่างประเทศจนกว่าจะสิ้นสุดของการทำธุรกรรม. มันเหมาะกับฐานข้อมูลที่คุณกำลังใช้ดังนั้นชนิดเขตข้อมูลฐานข้อมูลที่เฉพาะเจาะจงเช่น auto_increment (MySQL), แบบอนุกรม (PostgreSQL) หรือจำนวนเต็มคีย์หลัก AutoIncrement (SQLite) ได้รับการจัดการให้คุณโดยอัตโนมัติ เดียวกันจะไปสำหรับข้อความของชื่อเขต -. เช่นการใช้คำพูดคู่ราคาเดียวหรือคำสั่งsqlmigrate ไม่ได้ทำงานจริงในการโยกย้ายฐานข้อมูลของคุณ - มันก็พิมพ์ไปยังหน้าจอเพื่อให้คุณสามารถมองเห็นสิ่ง SQL Django คิดว่าจะต้อง . มันมีประโยชน์สำหรับการตรวจสอบสิ่งที่ Django จะไปทำหรือหากคุณมีผู้บริหารฐานข้อมูลที่ต้องการสคริปต์ SQL สำหรับการเปลี่ยนแปลง. หากคุณสนใจคุณยังสามารถเรียกใช้หลามกา manage.py; . การตรวจสอบนี้สำหรับปัญหาใด ๆ ในโครงการของคุณโดยไม่ทำให้การโยกย้ายหรือการสัมผัสฐานข้อมูลตอนนี้ทำงานโยกย้ายอีกครั้งเพื่อสร้างผู้ตารางในรูปแบบฐานข้อมูลของคุณ:










การแปล กรุณารอสักครู่..
ผลลัพธ์ (ไทย) 3:[สำเนา]
คัดลอก!
หมายเหตุต่อไปนี้ :

ผลผลิตที่แน่นอนจะขึ้นอยู่กับฐานข้อมูลที่คุณใช้ ตัวอย่างข้างต้นจะถูกสร้างขึ้นสำหรับ
ชื่อตารางที่สร้างขึ้นโดยอัตโนมัติโดยการรวมชื่อของ app ( โพลล์ ) และ พิมพ์เล็ก ชื่อของรูปแบบ–คำถามและตัวเลือก ( คุณสามารถแทนที่พฤติกรรม นี้ )
คีย์หลัก ( IDS ) จะถูกเพิ่มโดยอัตโนมัติ ( คุณสามารถแทนที่มันด้วย )
โดยการประชุมDjango ต่อท้าย " _id " ไปต่างประเทศชื่อเขตข้อมูลคีย์ ( yes , คุณสามารถแทนที่นี้ด้วยเช่นกัน )
ความสัมพันธ์คีย์ต่างประเทศให้ชัดเจน โดยคีย์ต่างประเทศจำกัด ไม่ต้องห่วงเรื่องอะไหล่ deferrable ; ที่บอก PostgreSQL ไม่ได้บังคับให้คีย์ต่างประเทศจนกว่าจะสิ้นสุดของธุรกรรม .
มันเหมาะกับฐานข้อมูลที่คุณใช้ดังนั้นฐานข้อมูลชนิดของเขตข้อมูลที่เฉพาะเจาะจง เช่น auto_increment ( MySQL ) , Serial ( PostgreSQL ) หรือเป็นคีย์หลัก autoincrement ( SQLite ) จะจัดการ ให้คุณโดยอัตโนมัติ เดียวกันจะไปสำหรับส่วนของชื่อเขตข้อมูล ) เช่น การใช้คำพูดหรือคำคม
คู่เดียวการ sqlmigrate สั่งๆ แล้วไม่เรียกการย้ายถิ่นในฐานข้อมูลของคุณ -- มันเพียงแค่พิมพ์ไปยังหน้าจอเพื่อให้คุณสามารถดูว่า SQL Django คิดว่าเป็นสิ่งจำเป็น มันมีประโยชน์สำหรับการตรวจสอบว่า Django จะทำ หรือถ้าคุณมีฐานข้อมูลผู้บริหารที่ต้องใช้สคริปต์ SQL สำหรับการเปลี่ยนแปลง .
ถ้าคุณสนใจ , คุณยังสามารถเรียกดู manage.py งูหลาม ;นี้ตรวจสอบสำหรับปัญหาใด ๆในโครงการของคุณโดยไม่มีการโยกย้ายหรือสัมผัสฐานข้อมูล

ตอนนี้วิ่งโยกย้ายอีกครั้งในการสร้างรูปแบบตารางในฐานข้อมูลของคุณ :
การแปล กรุณารอสักครู่..
 
ภาษาอื่น ๆ
การสนับสนุนเครื่องมือแปลภาษา: กรีก, กันนาดา, กาลิเชียน, คลิงออน, คอร์สิกา, คาซัค, คาตาลัน, คินยารวันดา, คีร์กิซ, คุชราต, จอร์เจีย, จีน, จีนดั้งเดิม, ชวา, ชิเชวา, ซามัว, ซีบัวโน, ซุนดา, ซูลู, ญี่ปุ่น, ดัตช์, ตรวจหาภาษา, ตุรกี, ทมิฬ, ทาจิก, ทาทาร์, นอร์เวย์, บอสเนีย, บัลแกเรีย, บาสก์, ปัญจาป, ฝรั่งเศส, พาชตู, ฟริเชียน, ฟินแลนด์, ฟิลิปปินส์, ภาษาอินโดนีเซี, มองโกเลีย, มัลทีส, มาซีโดเนีย, มาราฐี, มาลากาซี, มาลายาลัม, มาเลย์, ม้ง, ยิดดิช, ยูเครน, รัสเซีย, ละติน, ลักเซมเบิร์ก, ลัตเวีย, ลาว, ลิทัวเนีย, สวาฮิลี, สวีเดน, สิงหล, สินธี, สเปน, สโลวัก, สโลวีเนีย, อังกฤษ, อัมฮาริก, อาร์เซอร์ไบจัน, อาร์เมเนีย, อาหรับ, อิกโบ, อิตาลี, อุยกูร์, อุสเบกิสถาน, อูรดู, ฮังการี, ฮัวซา, ฮาวาย, ฮินดี, ฮีบรู, เกลิกสกอต, เกาหลี, เขมร, เคิร์ด, เช็ก, เซอร์เบียน, เซโซโท, เดนมาร์ก, เตลูกู, เติร์กเมน, เนปาล, เบงกอล, เบลารุส, เปอร์เซีย, เมารี, เมียนมา (พม่า), เยอรมัน, เวลส์, เวียดนาม, เอสเปอแรนโต, เอสโทเนีย, เฮติครีโอล, แอฟริกา, แอลเบเนีย, โคซา, โครเอเชีย, โชนา, โซมาลี, โปรตุเกส, โปแลนด์, โยรูบา, โรมาเนีย, โอเดีย (โอริยา), ไทย, ไอซ์แลนด์, ไอร์แลนด์, การแปลภาษา.

Copyright ©2026 I Love Translation. All reserved.

E-mail: