Go to the source code of this file.
Functions | |
db_query ($query) | |
db_create_table_sql ($name, $table) | |
_db_create_keys_sql ($spec) | |
_db_create_key_sql ($fields) | |
_db_process_field ($field) | |
_db_create_field_sql ($name, $spec) | |
db_type_map () | |
db_rename_table (&$ret, $table, $new_name) | |
db_drop_table (&$ret, $table) | |
db_add_field (&$ret, $table, $field, $spec, $keys_new=array()) | |
db_drop_field (&$ret, $table, $field) | |
db_field_set_default (&$ret, $table, $field, $default) | |
db_field_set_no_default (&$ret, $table, $field) | |
db_add_primary_key (&$ret, $table, $fields) | |
db_drop_primary_key (&$ret, $table) | |
db_add_unique_key (&$ret, $table, $name, $fields) | |
db_drop_unique_key (&$ret, $table, $name) | |
db_add_index (&$ret, $table, $name, $fields) | |
db_drop_index (&$ret, $table, $name) | |
db_change_field (&$ret, $table, $field, $field_new, $spec, $keys_new=array()) | |
db_last_insert_id ($table, $field) |
Definition in file database.mysql-common.inc.
db_query | ( | $ | query | ) |
Runs a basic query in the active database.
User-supplied arguments to the query should be passed in as separate parameters so that they can be properly escaped to avoid SQL injection attacks.
$query | A string containing an SQL query. | |
... | A variable number of arguments which are substituted into the query using printf() syntax. Instead of a variable number of query arguments, you may also pass a single array containing the query arguments. |
NOTE: using this syntax will cast NULL and FALSE values to decimal 0, and TRUE values to decimal 1.
Definition at line 33 of file database.mysql-common.inc.
References _db_query(), _db_query_callback(), and db_prefix_tables().
Referenced by _batch_finished(), _batch_page(), _batch_shutdown(), _comment_delete_thread(), _drupal_rebuild_code_registry(), DrupalWebTestCase::_drupalCreateRole(), _locale_export_get_strings(), _locale_import_one_string(), _locale_import_one_string_db(), _locale_import_po(), _locale_parse_js_file(), _locale_rebuild_js(), _menu_delete_item(), _menu_link_move_children(), _menu_navigation_links_rebuild(), _menu_router_build(), _menu_set_expanded_menus(), _menu_update_parental_status(), _registry_check_code(), _registry_parse_file(), _registry_parse_files(), _trigger_get_hook_actions(), actions_delete(), actions_do(), actions_function_lookup(), actions_get_all_actions(), actions_load(), actions_save(), actions_synchronize(), aggregator_categorize_items(), aggregator_categorize_items_submit(), aggregator_feed_items_load(), aggregator_form_category_validate(), aggregator_form_feed(), aggregator_form_feed_validate(), aggregator_page_categories(), aggregator_page_opml(), aggregator_page_rss(), aggregator_page_sources(), aggregator_view(), batch_process(), block_add_block_form_submit(), block_add_block_form_validate(), block_admin_configure(), block_admin_configure_submit(), block_admin_configure_validate(), block_admin_display_form_submit(), block_box_delete_submit(), book_remove_form_submit(), cache_clear_all(), cache_get(), cache_set(), comment_admin_overview_submit(), comment_delete(), comment_edit(), comment_multiple_delete_confirm(), comment_reply(), contact_admin_categories(), contact_admin_delete_submit(), contact_admin_edit_submit(), contact_mail_page(), db_add_field(), db_check_setup(), db_column_exists(), db_last_insert_id(), db_lock_table(), db_table_exists(), db_unlock_tables(), db_version(), dblog_event(), drupal_function_exists(), drupal_get_filename(), drupal_get_installed_schema_version(), drupal_install_system(), drupal_is_denied(), drupal_lookup_path(), drupal_set_installed_schema_version(), drupal_uninstall_module(), drupal_write_record(), DrupalWebTestCase::drupalCreateNode(), file_set_status(), file_space_used(), filter_admin_delete(), filter_admin_delete_submit(), filter_admin_format_form_submit(), filter_admin_format_form_validate(), filter_admin_order_submit(), filter_admin_overview_submit(), flood_is_allowed(), flood_register_event(), install_verify_drupal(), language_list(), list_themes(), locale_add_language(), locale_batch_by_component(), locale_batch_by_language(), locale_languages_delete_form_submit(), locale_languages_edit_form(), locale_languages_edit_form_submit(), locale_languages_edit_form_validate(), locale_languages_overview_form_submit(), locale_languages_predefined_form_validate(), locale_translate_delete(), locale_translate_edit_form(), locale_translate_edit_form_submit(), locale_translate_overview_screen(), menu_delete_menu_confirm(), menu_delete_menu_confirm_submit(), menu_edit_menu_submit(), menu_edit_menu_validate(), menu_get_names(), menu_link_delete(), menu_link_load(), menu_link_maintain(), menu_link_save(), menu_local_tasks(), menu_overview_form(), menu_overview_page(), menu_router_build(), menu_tree_all_data(), menu_tree_check_access(), menu_tree_page_data(), menu_valid_path(), module_disable(), module_enable(), module_list(), module_rebuild_cache(), node_admin_nodes(), node_configure(), node_multiple_delete_confirm(), node_revision_delete_confirm_submit(), node_type_delete_confirm(), openid_user_add_validate(), openid_user_delete(), openid_user_identities(), pager_query(), path_admin_form_validate(), path_admin_overview(), profile_admin_overview(), profile_admin_overview_submit(), profile_autocomplete(), profile_browse(), profile_field_delete(), profile_field_delete_submit(), profile_field_form(), profile_field_form_submit(), profile_field_form_validate(), registry_cache_path_files(), registry_get_parsed_files(), sess_count(), sess_destroy_sid(), sess_destroy_uid(), sess_gc(), sess_read(), sess_regenerate(), sess_write(), statistics_access_log(), system_ip_blocking(), system_ip_blocking_delete_submit(), system_ip_blocking_form_submit(), system_ip_blocking_form_validate(), system_main_admin_page(), system_modules_uninstall(), system_sql(), system_status(), system_themes_form_submit(), taxonomy_overview_terms(), taxonomy_term_page(), taxonomy_vocabulary_confirm_reset_alphabetical_submit(), trigger_assign_form_submit(), trigger_assign_form_validate(), trigger_unassign_submit(), update_fix_compatibility(), update_sql(), user_admin_account(), user_admin_perm_submit(), user_admin_role(), user_admin_role_submit(), user_admin_role_validate(), variable_del(), variable_init(), and variable_set().