{"id":2133,"date":"2024-03-18T14:23:35","date_gmt":"2024-03-18T06:23:35","guid":{"rendered":"https:\/\/sanlangcode.com\/?p=2133"},"modified":"2024-03-18T14:23:35","modified_gmt":"2024-03-18T06:23:35","slug":"%e6%95%b0%e6%8d%ae%e5%ba%93%e8%a1%a8%e6%8b%86%e5%88%86%e5%87%a0%e7%82%b9%e9%a1%bb%e7%9f%a5","status":"publish","type":"post","link":"https:\/\/sanlangcode.com\/index.php\/2024\/03\/18\/%e6%95%b0%e6%8d%ae%e5%ba%93%e8%a1%a8%e6%8b%86%e5%88%86%e5%87%a0%e7%82%b9%e9%a1%bb%e7%9f%a5\/","title":{"rendered":"\u6570\u636e\u5e93\u8868\u62c6\u5206\u7b80\u5355\u987b\u77e5\u4e0e\u793a\u4f8b\uff08SQLite\u4e3a\u4f8b\uff09"},"content":{"rendered":"\n<p>\u672c\u53f8\u6700\u8fd1\u4e00\u4e2a\u9879\u76ee\u529f\u80fd\u9700\u6c42\u6539\u8fdb\uff0c\u9700\u8981\u5bf9\u539f\u6570\u636e\u5e93\u8868\u8fdb\u884c\u62c6\u5206\u3002\u529f\u80fd\u9700\u6c42\u4e3a\u4e3b\u3002\u76f8\u4e92\u8981\u662f\u7eb5\u5411\u5b57\u6bb5\u7684\u8be5\u8868\u3002\u6ee1\u8db3\u4e0d\u540c\u9700\u6c42\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u6570\u636e\u5e93\u8868\u62c6\u5206\u662f\u6307\u5c06\u4e00\u4e2a\u5927\u578b\u6570\u636e\u5e93\u8868\u6309\u7167\u67d0\u79cd\u89c4\u5219\u6216\u7b56\u7565\u5206\u5272\u6210\u591a\u4e2a\u8f83\u5c0f\u7684\u8868\uff0c\u8fd9\u6837\u505a\u901a\u5e38\u662f\u4e3a\u4e86\u63d0\u9ad8\u6570\u636e\u5e93\u6027\u80fd\u3001\u53ef\u7ef4\u62a4\u6027\u3001\u6269\u5c55\u6027\u7b49\u65b9\u9762\u7684\u4f18\u5316\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u8be6\u7ec6\u4ecb\u7ecd\u6570\u636e\u5e93\u8868\u62c6\u5206\u7684\u8fc7\u7a0b\uff1a<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. \u786e\u5b9a\u62c6\u5206\u7684\u539f\u56e0\u548c\u76ee\u6807\uff1a<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>\u6027\u80fd\u4f18\u5316\uff1a<\/strong> \u539f\u59cb\u7684\u5927\u578b\u8868\u53ef\u80fd\u5b58\u5728\u6027\u80fd\u74f6\u9888\uff0c\u5bfc\u81f4\u67e5\u8be2\u901f\u5ea6\u53d8\u6162\u3002<\/li><li><strong>\u6570\u636e\u9694\u79bb\uff1a<\/strong> \u5c06\u6570\u636e\u6309\u7167\u67d0\u79cd\u903b\u8f91\u5206\u7c7b\uff0c\u4ee5\u63d0\u9ad8\u6570\u636e\u7ba1\u7406\u7684\u7075\u6d3b\u6027\u548c\u5b89\u5168\u6027\u3002<\/li><li><strong>\u6269\u5c55\u6027\uff1a<\/strong> \u4e3a\u4e86\u652f\u6301\u7cfb\u7edf\u672a\u6765\u7684\u6269\u5c55\u9700\u6c42\uff0c\u5982\u589e\u52a0\u6570\u636e\u91cf\u3001\u652f\u6301\u66f4\u591a\u7528\u6237\u7b49\u3002<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">2. \u9009\u62e9\u62c6\u5206\u7684\u7b56\u7565\uff1a<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>\u5782\u76f4\u62c6\u5206\uff08Vertical Partitioning\uff09\uff1a<\/strong> \u6839\u636e\u5b57\u6bb5\u7684\u5173\u7cfb\u5c06\u8868\u5206\u5272\u6210\u591a\u4e2a\u5b50\u8868\uff0c\u6bcf\u4e2a\u5b50\u8868\u5305\u542b\u4e0d\u540c\u7684\u5217\u3002\u5e38\u7528\u4e8e\u5c06\u9891\u7e41\u8bbf\u95ee\u7684\u5217\u4e0e\u4e0d\u7ecf\u5e38\u8bbf\u95ee\u7684\u5217\u5206\u5f00\u3002<\/li><li><strong>\u6c34\u5e73\u62c6\u5206\uff08Horizontal Partitioning\uff09\uff1a<\/strong> \u5c06\u8868\u6309\u7167\u67d0\u79cd\u89c4\u5219\u62c6\u5206\u6210\u591a\u4e2a\u5b50\u8868\uff0c\u6bcf\u4e2a\u5b50\u8868\u5305\u542b\u90e8\u5206\u884c\u8bb0\u5f55\u3002\u5e38\u89c1\u7684\u65b9\u6cd5\u6709\u8303\u56f4\u5206\u533a\u3001\u54c8\u5e0c\u5206\u533a\u3001\u8f6e\u8f6c\u5206\u533a\u7b49\u3002<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">3. \u5206\u6790\u6570\u636e\u5e93\u8868\u7684\u7ed3\u6784\u548c\u6570\u636e\uff1a<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>\u67e5\u770b\u6570\u636e\u5e93\u8868\u7684\u5b57\u6bb5\uff0c\u4e86\u89e3\u5176\u4e4b\u95f4\u7684\u5173\u7cfb\u548c\u91cd\u8981\u6027\u3002<\/li><li>\u5206\u6790\u6570\u636e\u8bbf\u95ee\u6a21\u5f0f\uff0c\u786e\u5b9a\u54ea\u4e9b\u6570\u636e\u9891\u7e41\u8bbf\u95ee\u3001\u54ea\u4e9b\u6570\u636e\u4e0d\u7ecf\u5e38\u8bbf\u95ee\u3002<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">4. \u5b9e\u65bd\u62c6\u5206\u65b9\u6848\uff1a<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>\u5782\u76f4\u62c6\u5206\uff1a<\/strong><ul><li>\u521b\u5efa\u65b0\u7684\u5b50\u8868\uff0c\u5c06\u539f\u59cb\u8868\u4e2d\u7684\u76f8\u5173\u5217\u8fc1\u79fb\u5230\u65b0\u7684\u5b50\u8868\u4e2d\u3002<\/li><li>\u66f4\u65b0\u5e94\u7528\u7a0b\u5e8f\u4ee3\u7801\uff0c\u4ee5\u786e\u4fdd\u5b83\u4eec\u80fd\u591f\u6b63\u786e\u5730\u8bbf\u95ee\u65b0\u7684\u5b50\u8868\u3002<\/li><\/ul><\/li><li><strong>\u6c34\u5e73\u62c6\u5206\uff1a<\/strong><ul><li>\u6839\u636e\u62c6\u5206\u89c4\u5219\u521b\u5efa\u65b0\u7684\u5b50\u8868\uff0c\u4f8b\u5982\u6309\u7167\u65e5\u671f\u8303\u56f4\u3001\u5730\u7406\u4f4d\u7f6e\u3001\u7528\u6237ID\u7b49\u3002<\/li><li>\u5c06\u539f\u59cb\u8868\u4e2d\u7684\u6570\u636e\u6309\u7167\u62c6\u5206\u89c4\u5219\u5206\u914d\u5230\u76f8\u5e94\u7684\u5b50\u8868\u4e2d\u3002<\/li><li>\u66f4\u65b0\u5e94\u7528\u7a0b\u5e8f\u4ee3\u7801\uff0c\u4ee5\u786e\u4fdd\u5b83\u4eec\u80fd\u591f\u6b63\u786e\u5730\u8bbf\u95ee\u65b0\u7684\u5b50\u8868\u3002<\/li><\/ul><\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">5. \u6d4b\u8bd5\u548c\u4f18\u5316\uff1a<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>\u5bf9\u65b0\u7684\u62c6\u5206\u8868\u8fdb\u884c\u5168\u9762\u7684\u6d4b\u8bd5\uff0c\u786e\u4fdd\u62c6\u5206\u540e\u7684\u6027\u80fd\u3001\u529f\u80fd\u548c\u6570\u636e\u5b8c\u6574\u6027\u90fd\u7b26\u5408\u9884\u671f\u3002<\/li><li>\u6839\u636e\u6d4b\u8bd5\u7ed3\u679c\u5bf9\u62c6\u5206\u65b9\u6848\u8fdb\u884c\u8c03\u6574\u548c\u4f18\u5316\uff0c\u4ee5\u63d0\u9ad8\u7cfb\u7edf\u7684\u7a33\u5b9a\u6027\u548c\u6027\u80fd\u3002<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">6. \u6570\u636e\u8fc1\u79fb\uff1a<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>\u5982\u679c\u662f\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u8fdb\u884c\u62c6\u5206\uff0c\u9700\u8981\u5236\u5b9a\u8be6\u7ec6\u7684\u6570\u636e\u8fc1\u79fb\u8ba1\u5212\uff0c\u786e\u4fdd\u6570\u636e\u8fc1\u79fb\u8fc7\u7a0b\u4e2d\u4e0d\u4f1a\u4e22\u5931\u6570\u636e\u6216\u5f71\u54cd\u4e1a\u52a1\u8fd0\u884c\u3002<\/li><li>\u4f7f\u7528\u5408\u9002\u7684\u8fc1\u79fb\u5de5\u5177\u548c\u6280\u672f\uff0c\u5c06\u539f\u59cb\u8868\u4e2d\u7684\u6570\u636e\u5b89\u5168\u5730\u8fc1\u79fb\u5230\u65b0\u7684\u62c6\u5206\u8868\u4e2d\u3002<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">7. \u76d1\u63a7\u548c\u7ef4\u62a4\uff1a<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>\u5efa\u7acb\u76d1\u63a7\u7cfb\u7edf\uff0c\u5b9a\u671f\u76d1\u6d4b\u62c6\u5206\u8868\u7684\u6027\u80fd\u548c\u5065\u5eb7\u72b6\u51b5\uff0c\u53ca\u65f6\u53d1\u73b0\u548c\u89e3\u51b3\u95ee\u9898\u3002<\/li><li>\u6839\u636e\u4e1a\u52a1\u9700\u6c42\u548c\u7cfb\u7edf\u53d8\u5316\uff0c\u5b9a\u671f\u8bc4\u4f30\u62c6\u5206\u65b9\u6848\u7684\u6709\u6548\u6027\uff0c\u8fdb\u884c\u5fc5\u8981\u7684\u8c03\u6574\u548c\u4f18\u5316\u3002<\/li><\/ul>\n\n\n\n<p>SQLite\u6570\u636e\u5e93\u8868\u62c6\u5206\u7684\u793a\u4f8b<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><br>1. \u5782\u76f4\u62c6\u5206\u793a\u4f8b\uff1a<\/h3>\n\n\n\n<p>\u5047\u8bbe\u6709\u4e00\u4e2a\u5305\u542b\u7528\u6237\u4fe1\u606f\u7684\u5927\u578b\u8868 <code>Users<\/code>\uff0c\u5176\u4e2d\u5305\u542b\u4e86\u7528\u6237\u7684\u57fa\u672c\u4fe1\u606f\u548c\u9644\u52a0\u4fe1\u606f\uff0c\u4f46\u662f\u9644\u52a0\u4fe1\u606f\u5e76\u4e0d\u662f\u6bcf\u6b21\u67e5\u8be2\u90fd\u9700\u8981\u7684\u3002\u53ef\u4ee5\u8003\u8651\u5c06\u9644\u52a0\u4fe1\u606f\u62c6\u5206\u5230\u5355\u72ec\u7684\u8868\u4e2d\u3002<\/p>\n\n\n\n<p>\u539f\u59cb\u8868 <code>Users<\/code>\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>CREATE TABLE Users (\n    id INTEGER PRIMARY KEY,\n    username TEXT NOT NULL,\n    email TEXT NOT NULL UNIQUE,\n    password TEXT NOT NULL,\n    date_of_birth TEXT,\n    address TEXT,\n    phone_number TEXT\n);\n<\/code><\/code><\/pre>\n\n\n\n<p>\u62c6\u5206\u540e\u7684\u8868\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>CREATE TABLE Users (\n    id INTEGER PRIMARY KEY,\n    username TEXT NOT NULL,\n    email TEXT NOT NULL UNIQUE,\n    password TEXT NOT NULL\n);\n\nCREATE TABLE UserProfile (\n    user_id INTEGER PRIMARY KEY,\n    date_of_birth TEXT,\n    address TEXT,\n    phone_number TEXT,\n   <strong> FOREIGN KEY (user_id) REFERENCES Users(id)<\/strong>\n);\n<\/code><\/code><\/pre>\n\n\n\n<p>\u8fd9\u6837\u62c6\u5206\u540e\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u8981\u9009\u62e9\u6027\u5730\u67e5\u8be2\u7528\u6237\u7684\u57fa\u672c\u4fe1\u606f\u548c\u9644\u52a0\u4fe1\u606f\uff0c\u4ee5\u51cf\u5c11\u67e5\u8be2\u7684\u590d\u6742\u6027\u548c\u63d0\u9ad8\u6027\u80fd\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. \u6c34\u5e73\u62c6\u5206\u793a\u4f8b\uff1a<\/h3>\n\n\n\n<p>\u5047\u8bbe\u6709\u4e00\u4e2a\u5305\u542b\u8ba2\u5355\u4fe1\u606f\u7684\u5927\u578b\u8868 <code>Orders<\/code>\uff0c\u8ba2\u5355\u6570\u91cf\u5f88\u5927\uff0c\u53ef\u4ee5\u6839\u636e\u8ba2\u5355\u7684\u65f6\u95f4\u8303\u56f4\u5c06\u8868\u62c6\u5206\u6210\u591a\u4e2a\u5b50\u8868\uff0c\u4f8b\u5982\u6309\u7167\u5e74\u4efd\u8fdb\u884c\u62c6\u5206\u3002<\/p>\n\n\n\n<p>\u539f\u59cb\u8868 <code>Orders<\/code>\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>CREATE TABLE Orders (\n    id INTEGER PRIMARY KEY,\n    order_date TEXT,\n    customer_id INTEGER,\n    total_amount REAL\n);\n<\/code><\/code><\/pre>\n\n\n\n<p>\u6c34\u5e73\u62c6\u5206\u540e\u7684\u5b50\u8868\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>CREATE TABLE Orders_2022 (\n    id INTEGER PRIMARY KEY,\n    order_date TEXT,\n    customer_id INTEGER,\n    total_amount REAL\n);\n\nCREATE TABLE Orders_2023 (\n    id INTEGER PRIMARY KEY,\n    order_date TEXT,\n    customer_id INTEGER,\n    total_amount REAL\n);\n\nCREATE TABLE Orders_2024 (\n    id INTEGER PRIMARY KEY,\n    order_date TEXT,\n    customer_id INTEGER,\n    total_amount REAL\n);\n<\/code><\/code><\/pre>\n\n\n\n<p>\u6bcf\u4e2a\u5b50\u8868\u53ea\u5305\u542b\u7279\u5b9a\u5e74\u4efd\u7684\u8ba2\u5355\u6570\u636e\uff0c\u8fd9\u6837\u53ef\u4ee5\u6709\u6548\u5730\u51cf\u5c11\u5355\u4e2a\u8868\u7684\u6570\u636e\u91cf\uff0c\u63d0\u9ad8\u67e5\u8be2\u6027\u80fd\uff0c\u540c\u65f6\u4e5f\u4fbf\u4e8e\u7ba1\u7406\u548c\u7ef4\u62a4\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. \u5782\u76f4\u548c\u6c34\u5e73\u62c6\u5206\u7ed3\u5408\u793a\u4f8b\uff1a<\/h3>\n\n\n\n<p>\u5047\u8bbe\u6709\u4e00\u4e2a\u5305\u542b\u5546\u54c1\u4fe1\u606f\u7684\u5927\u578b\u8868 <code>Products<\/code>\uff0c\u5176\u4e2d\u65e2\u5305\u542b\u57fa\u672c\u4fe1\u606f\u4e5f\u5305\u542b\u8be6\u7ec6\u4fe1\u606f\uff0c\u5e76\u4e14\u5546\u54c1\u6570\u636e\u91cf\u5f88\u5927\u3002\u53ef\u4ee5\u6839\u636e\u5782\u76f4\u62c6\u5206\u5c06\u57fa\u672c\u4fe1\u606f\u548c\u8be6\u7ec6\u4fe1\u606f\u5206\u5f00\uff0c\u5e76\u4e14\u6839\u636e\u67d0\u79cd\u89c4\u5219\u8fdb\u884c\u6c34\u5e73\u62c6\u5206\u3002<\/p>\n\n\n\n<p>\u539f\u59cb\u8868 <code>Products<\/code>\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>CREATE TABLE Products (\n   <strong> id INTEGER PRIMARY KEY,<\/strong>\n    name TEXT,\n    description TEXT,\n    price REAL,\n    category TEXT,\n    created_at TEXT\n);\n<\/code><\/code><\/pre>\n\n\n\n<p>\u5782\u76f4\u62c6\u5206\u540e\u7684\u8868\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>CREATE TABLE ProductsBasic (\n <strong>   id INTEGER PRIMARY KEY,<\/strong>\n    name TEXT,\n    price REAL,\n    category TEXT\n);\n\nCREATE TABLE ProductsDetail (\n   <strong> id INTEGER PRIMARY KEY,<\/strong>\n    description TEXT,\n    created_at TEXT\n);\n<\/code><\/code><\/pre>\n\n\n\n<p>\u6c34\u5e73\u62c6\u5206\u540e\u7684\u5b50\u8868\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>CREATE TABLE Products_2022 (\n   <strong> id INTEGER PRIMARY KEY,<\/strong>\n    name TEXT,\n    price REAL,\n    category TEXT\n);\n\nCREATE TABLE Products_2023 (\n    <strong>id INTEGER PRIMARY KEY,<\/strong>\n    name TEXT,\n    price REAL,\n    category TEXT\n);\n\nCREATE TABLE Products_2024 (\n  <strong>  id INTEGER PRIMARY KEY,<\/strong>\n    name TEXT,\n    price REAL,\n    category TEXT\n);\n<\/code><\/code><\/pre>\n\n\n\n<p>\u8fd9\u6837\u7ed3\u5408\u5782\u76f4\u548c\u6c34\u5e73\u62c6\u5206\uff0c\u53ef\u4ee5\u66f4\u7075\u6d3b\u5730\u7ba1\u7406\u548c\u67e5\u8be2\u5546\u54c1\u6570\u636e\uff0c\u63d0\u9ad8\u6570\u636e\u5e93\u7684\u6027\u80fd\u548c\u53ef\u7ef4\u62a4\u6027\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u521b\u5efa\u4e00\u4e2a\u5305\u542b\u5b9e\u9a8c\u6570\u636e\u7684\u5927\u578b\u8868\uff0c\u7136\u540e\u6839\u636e\u5b57\u6bb5\u7684\u7279\u6027\u548c\u8bbf\u95ee\u6a21\u5f0f\u8fdb\u884c\u62c6\u5206\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u539f\u59cb\u8868\u8bbe\u8ba1\uff1a<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>CREATE TABLE ExperimentData (\n    id INTEGER PRIMARY KEY,\n    experiment_id INTEGER,\n    cell_rate REAL,  -- \u7ec6\u80de\u6d3b\u7387\n    aggregation_rate REAL,  -- \u56e2\u805a\u7387\n    average_diameter REAL,  -- \u5e73\u5747\u76f4\u5f84\n    average_roundness REAL,  -- \u5e73\u5747\u5706\u5ea6\n    total_cell_count INTEGER,  -- \u603b\u7ec6\u80de\u6570\n    live_cell_count INTEGER,  -- \u6d3b\u7ec6\u80de\u6570\n    dead_cell_count INTEGER,  -- \u6b7b\u7ec6\u80de\u6570\n    live_cell_average_roundness REAL,  -- \u6d3b\u7ec6\u80de\u5e73\u5747\u5706\u5ea6\n    live_cell_average_diameter REAL,  -- \u6d3b\u7ec6\u80de\u5e73\u5747\u76f4\u5f84\n    FOREIGN KEY (experiment_id) REFERENCES Experiments(id)\n);\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE TABLE Experiments (\n    id INTEGER PRIMARY KEY,\n    -- \u5176\u4ed6\u5b9e\u9a8c\u76f8\u5173\u7684\u5b57\u6bb5\n);<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u8868\u62c6\u5206\u65b9\u6848\uff1a<\/h3>\n\n\n\n<p>\u6839\u636e\u5b57\u6bb5\u7684\u7279\u6027\u548c\u8bbf\u95ee\u6a21\u5f0f\uff0c\u53ef\u4ee5\u8003\u8651\u4ee5\u4e0b\u62c6\u5206\u65b9\u6848\uff1a<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">1. \u5782\u76f4\u62c6\u5206\uff1a<\/h4>\n\n\n\n<p>\u5c06\u5177\u6709\u7c7b\u4f3c\u7279\u6027\u7684\u5b57\u6bb5\u653e\u5728\u4e00\u8d77\uff0c\u62c6\u5206\u6210\u591a\u4e2a\u5b50\u8868\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>\u57fa\u672c\u4fe1\u606f\u8868\uff1a<\/strong><\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE TABLE ExperimentBasicInfo ( \n    id INTEGER PRIMARY KEY,  -- \u4e3b\u952e\uff0c\u552f\u4e00\u6807\u8bc6\u6bcf\u6761\u8bb0\u5f55\n    experiment_id INTEGER,  -- \u5b9e\u9a8c\u7684\u552f\u4e00\u6807\u8bc6\u7b26\uff0c\u4e0e\u5b9e\u9a8c\u8868\u4e2d\u7684\u5b9e\u9a8c\u76f8\u5173\u8054\n    cell_rate REAL,  -- \u7ec6\u80de\u6d3b\u7387\uff0c\u8868\u793a\u5b9e\u9a8c\u4e2d\u7ec6\u80de\u7684\u6d3b\u8dc3\u7a0b\u5ea6\u6216\u5b58\u6d3b\u7387\n    aggregation_rate REAL,  -- \u56e2\u805a\u7387\uff0c\u8868\u793a\u7ec6\u80de\u5728\u5b9e\u9a8c\u4e2d\u7684\u805a\u96c6\u7a0b\u5ea6\n    average_diameter REAL,  -- \u5e73\u5747\u76f4\u5f84\uff0c\u8868\u793a\u5b9e\u9a8c\u4e2d\u7ec6\u80de\u7684\u5e73\u5747\u76f4\u5f84\u5927\u5c0f\n    average_roundness REAL,  -- \u5e73\u5747\u5706\u5ea6\uff0c\u8868\u793a\u5b9e\u9a8c\u4e2d\u7ec6\u80de\u7684\u5e73\u5747\u5706\u5ea6\u6216\u5f62\u72b6\u7684\u89c4\u5219\u7a0b\u5ea6\n    total_cell_count INTEGER,  -- \u603b\u7ec6\u80de\u6570\uff0c\u8868\u793a\u5b9e\u9a8c\u4e2d\u7684\u7ec6\u80de\u603b\u6570\n    FOREIGN KEY (experiment_id) REFERENCES Experiments(id)  -- \u5916\u952e\uff0c\u7528\u4e8e\u4e0e\u5b9e\u9a8c\u8868\u4e2d\u7684\u5bf9\u5e94\u5b9e\u9a8c\u76f8\u5173\u8054\n);<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>\u7ec6\u80de\u7edf\u8ba1\u4fe1\u606f\u8868\uff1a<\/strong><\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE TABLE CellStatistics ( \n    id INTEGER PRIMARY KEY,  -- \u4e3b\u952e\uff0c\u552f\u4e00\u6807\u8bc6\u6bcf\u6761\u8bb0\u5f55\n    experiment_id INTEGER,  -- \u5b9e\u9a8c\u7684\u552f\u4e00\u6807\u8bc6\u7b26\uff0c\u4e0e\u5b9e\u9a8c\u8868\u4e2d\u7684\u5b9e\u9a8c\u76f8\u5173\u8054\n    live_cell_count INTEGER,  -- \u6d3b\u7ec6\u80de\u6570\uff0c\u8868\u793a\u5b9e\u9a8c\u4e2d\u7684\u6d3b\u7ec6\u80de\u6570\u91cf\n    dead_cell_count INTEGER,  -- \u6b7b\u7ec6\u80de\u6570\uff0c\u8868\u793a\u5b9e\u9a8c\u4e2d\u7684\u6b7b\u7ec6\u80de\u6570\u91cf\n    live_cell_average_roundness REAL,  -- \u6d3b\u7ec6\u80de\u5e73\u5747\u5706\u5ea6\uff0c\u8868\u793a\u5b9e\u9a8c\u4e2d\u6d3b\u7ec6\u80de\u7684\u5e73\u5747\u5706\u5ea6\n    live_cell_average_diameter REAL,  -- \u6d3b\u7ec6\u80de\u5e73\u5747\u76f4\u5f84\uff0c\u8868\u793a\u5b9e\u9a8c\u4e2d\u6d3b\u7ec6\u80de\u7684\u5e73\u5747\u76f4\u5f84\n    FOREIGN KEY (experiment_id) REFERENCES Experiments(id)  -- \u5916\u952e\uff0c\u7528\u4e8e\u4e0e\u5b9e\u9a8c\u8868\u4e2d\u7684\u5bf9\u5e94\u5b9e\u9a8c\u76f8\u5173\u8054\n);<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">2. \u6c34\u5e73\u62c6\u5206\uff1a<\/h4>\n\n\n\n<p>\u6839\u636e\u6570\u636e\u7684\u65f6\u95f4\u8303\u56f4\u6216\u5176\u4ed6\u6761\u4ef6\uff0c\u5c06\u8868\u6309\u7167\u67d0\u79cd\u89c4\u5219\u62c6\u5206\u6210\u591a\u4e2a\u5b50\u8868\u3002<\/p>\n\n\n\n<p>\u5047\u8bbe\u6839\u636e\u5b9e\u9a8c\u65f6\u95f4\u8fdb\u884c\u62c6\u5206\uff0c\u53ef\u4ee5\u521b\u5efa\u6309\u5e74\u4efd\u62c6\u5206\u7684\u5b50\u8868\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><strong>ExperimentData_2022\uff1a<\/strong> \u5b58\u50a82022\u5e74\u7684\u5b9e\u9a8c\u6570\u636e\u3002<\/p><p><strong>ExperimentData_2023\uff1a<\/strong> \u5b58\u50a82023\u5e74\u7684\u5b9e\u9a8c\u6570\u636e\u3002<\/p><p><strong>ExperimentData_2024\uff1a<\/strong> \u5b58\u50a82024\u5e74\u7684\u5b9e\u9a8c\u6570\u636e\u3002<\/p><\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u8868\u62c6\u5206\u793a\u610f\u56fe\uff1a<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code><code>ExperimentData (\u4e3b\u8868)\n\u251c\u2500\u2500 ExperimentBasicInfo (\u5782\u76f4\u62c6\u5206\u5b50\u8868)\n\u2514\u2500\u2500 CellStatistics (\u5782\u76f4\u62c6\u5206\u5b50\u8868)\n<\/code><\/code><\/pre>\n\n\n\n<p>\u901a\u8fc7\u5782\u76f4\u548c\u6c34\u5e73\u62c6\u5206\uff0c\u53ef\u4ee5\u6839\u636e\u6570\u636e\u7684\u7279\u6027\u548c\u8bbf\u95ee\u6a21\u5f0f\u6765\u66f4\u597d\u5730\u7ba1\u7406\u548c\u67e5\u8be2\u5b9e\u9a8c\u6570\u636e\uff0c\u63d0\u9ad8\u6570\u636e\u5e93\u7684\u6027\u80fd\u548c\u53ef\u7ef4\u62a4\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u53f8\u6700\u8fd1\u4e00\u4e2a\u9879\u76ee\u529f\u80fd\u9700\u6c42\u6539\u8fdb\uff0c\u9700&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,17,4],"tags":[],"class_list":["post-2133","post","type-post","status-publish","format-standard","hentry","category-mysql","category-oracle","category-4"],"_links":{"self":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts\/2133","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/comments?post=2133"}],"version-history":[{"count":0,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts\/2133\/revisions"}],"wp:attachment":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/media?parent=2133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/categories?post=2133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/tags?post=2133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}