1 ตาราง ควรมี ฟิว ไม่เกินเท่าไหร่ครับ(mysql)

เริ่มโดย rungroat4, 03 พฤษภาคม 2012, 12:15:38

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

rungroat4

พอดีเพิ่มฟิว ขึ้นไปเรื่อยๆ จนตอนนี้มัน 34 ฟิว แล้ว

จะเพิ่มอีก

ใน 1 ตาราง ควรมีฟิว ไม่เกินเท่าไหร่ครับ

จะทำ เพิ่มเป็น เว็บ 2 ภาษา
ควรจะแยกตารางออกมาดีมั๊ย ครับ

หรือว่า ใส่มันกับ ตารางเดิม ครับ
เป็นข้อมูลสินค้าครับ

ขอบคุณครับ
[direct=http://www.siamtime.co.th/]นาฬิกา[/direct]เท่ห์ ๆ ของแท้ ราคาถูก ประกันศูนย์

bunnachart

ยกมาจาก MySql

There is a hard limit of 4096 columns per table, but the effective maximum may be less for a given table. The exact limit depends on several interacting factors, listed in the following discussion.

    Every table has a maximum row size of 65,535 bytes. This maximum applies to all storage engines, but a given engine might have additional constraints that result in a lower effective maximum row size.

    The maximum row size constrains the number of columns because the total width of all columns cannot exceed this size. For example, utf8 characters require up to three bytes per character, so for a CHAR(255) CHARACTER SET utf8 column, the server must allocate 255 × 3 = 765 bytes per value. Consequently, a table cannot contain more than 65,535 / 765 = 85 such columns.

    Storage for variable-length columns includes length bytes, which are assessed against the row size. For example, a VARCHAR(255) CHARACTER SET utf8 column takes two bytes to store the length of the value, so each value can take up to 767 bytes.
[direct=https://www.inkthailand.com]จำหน่ายหมึกพิมพ์เลเซอร์[/direct] | จำหน่ายตลับหมึกเลเซอร์ราคาถูก
[direct=https://โกดังให้เช่า.net]โกดังให้เช่า[/direct] | โกดังให้เช่าราคาถูกหลายทำเลย
[direct=https://www.บ้านและโกดังสําเร็จรูป.com]รับสร้างบ้านสำเร็จรูป[/direct] | งบไม่บานปลาย
[direct=https://www.warehousebestbuy.com]รับสร้างโรงงาน[/direct]  | รับสร้างเสร็จเร็ว รับประกันโครงสร้าง 10 ปี
[direct=https://www.warehousebestbuy.com]รับสร้างโกดัง[/direct] | สร้างในโรงงาน ประกอบหน้างาน

rungroat4

มีใครแปลให้หน่อยได้มั๊ยครับ ภาษาอังกฤษไม่ค่อยเก่งครับ
[direct=http://www.siamtime.co.th/]นาฬิกา[/direct]เท่ห์ ๆ ของแท้ ราคาถูก ประกันศูนย์

rungroat4

#3
1 ตารางควรมีไม่มากกว่า 85 colum เข้าใจถูกมั๊ยครับ
[direct=http://www.siamtime.co.th/]นาฬิกา[/direct]เท่ห์ ๆ ของแท้ ราคาถูก ประกันศูนย์

tdelphi

อ้างถึงจาก: rungroat4 ใน 03 พฤษภาคม 2012, 13:31:27
1 ตารางควรมีไม่น้อยกว่า 85 colum เข้าใจถูกมั๊ยครับ


a table cannot contain more than 65,535 / 765 = 85 such columns.

อ่านจาก text เขาบอกว่า 1 table ไม่ควรเกิน 85 คอลัมน์ ครับ

iLhay

[direct=https://bangmod.cloud/wordpress-hosting/]Wordpress Hosting

[/direct]
[direct=https://bangmod.cloud/wordpress-hosting/]Wordpress Hosting[/direct] เริ่มต้นปีละ 790 บาท NVMe SSD เร็ว 9000MB/s เร็วกว่านี้ไม่มีอีกแล้ว
[direct=https://bangmod.cloud/cloud-server]Cloud Server[/direct] เริ่มต้นเพียงเดือนละ 159 บาท พร้อมใช้ภายใน 1 นาที ผ่านระบบอัตโนมัติมีทั้ง Linux / Windows / DirectAdmin
สอบถามข้อมูลและแจ้งปัญหา 02-105-4417 ตลอด 24 ชั่วโมง