Hàm: create_table_with_column()
Cú pháp:
create_table_with_column(table_name, columns)
Trong đó:
- table_name (string): tên bảng cần tạo
- columns (array): danh sách trường, sao cho:
columns:
column_name => column_type
- column_name: tên trường
- column_type: kiểu dữ liệu (TEXT, INTEGER, NUMERIC, BLOB, REAL,...)
Ví dụ:
{% set structure_chatbox = {"name":"TEXT","messeage":"TEXT","time":"INTEGER"} %}
{{create_table_with_column('chatbox', structure_chatbox)}}
Hàm create_table() là một hàm con của create_table_with_column(), với trường cho trước là time, kiểu INTEGER.
Cú pháp:
create_table(table_name)
- Danh sách chương (26) Link
- Biến API Đọc ngay
- Một số hàm khác Đọc ngay
- Hàm: ip() và user_agent() Đọc ngay
- Hàm: print_r() Đọc ngay
- Hàm: shuffle_array() và implode() Đọc ngay
- Hàm: rounding() Đọc ngay
- Hàm băm Đọc ngay
- Hàm: typetext() Đọc ngay
- Các hàm xử lý Cookie Đọc ngay
- Hàm: select_table_row_data_by_where() Đọc ngay
- Hàm: select_table() Đọc ngay
- Hàm: system_info() Đọc ngay
- Hàm: query_select_table() và query_update_table() Đọc ngay
- Hàm: delete_rows_table() Đọc ngay
- Hàm: update_row_array_table() Đọc ngay
- Hàm: insert_row_array_table() Đọc ngay
- Hàm: drop_column_table() Đọc ngay
- Hàm: create_columns_table() Đọc ngay
- Hàm: rename_table() và drop_table() Đọc ngay
- Hàm: get_row_count() Đọc ngay
- Hàm: create_table_with_column() [ Đang đọc ]
- Hàm: Xử lý biểu mẫu và URI Đọc ngay
- Một số bộ lọc khác Đọc ngay
- Các bộ lọc JSON và URL Đọc ngay
- Các bộ lọc Regex Đọc ngay
- Các bộ lọc Sort Đọc ngay