mysql

    -1熱度

    3回答

    我在OR不工作 try { $keyword = trim($_GET["keyword"]); if ($keyword <> "") { $sql = "SELECT * FROM tbl_contacts WHERE 1 AND " . " (first_name OR last_name LIKE :keyword) ORDER BY first

    1熱度

    4回答

    目前我正在開發一個項目,需要我爲我的用戶編寫一個API。到目前爲止,我寫了下面的SQL語句和測試它在我的本地在我的PHP: SELECT topquery.kind_id, topquery.image, topquery.id, userquery.user_name FROM `order` AS topquery, `user` AS user

    2熱度

    1回答

    嗨,當我做paste(c("A","B","C"),collapse='","'), 輸出是"A\",\"B\",\"C"。 我怎樣才能得到"A","B","C"作爲一個字符串?

    -1熱度

    1回答

    在我的數據庫中,我有幾個數據與逗號。 At first please watch my DATABASE TABLE。 現在我想在單據上提取並回顯數據在單行上。 Please watch the bill UI 實施例: - 比薩餅ABC 230 70 40 7000 1 6930會響應於第一行,然後也蛋糕PND 144 842 80 400 3 385將在第二線 呼應而這個過程將做使用完整循環以

    2熱度

    1回答

    中的Mysql數據庫中獲取個人資料圖片網址,我有個人資料圖片網址。我想要獲取個人資料圖片URL以及用戶詳細信息並顯示在我的應用中。以下是我的JSON響應。 {"error":false,"userid":"102372118524277056034","uname":"Asesha G","ulocation":"Location Not Set" ,"ugend":"Not Set","uem

    1熱度

    1回答

    我有以下SQL表: Id DateTime Speed 1 2017-03-02 19:06:20 50 1 2017-03-02 19:10:18 52 1 2017-04-01 20:01:10 55 2 2017-03-02 18:06:20 60 2 2017-05-03 19:08:00 61 3 2017-04-12 19:01:40 80 3 201

    0熱度

    1回答

    我有一個MySQL表,其中一個字段包含文本描述(〜5-200字)。 例如Reviews: Rev_id Place_id Stars Category Text 1 12 3 Food Nice food but a bad dirty place. 2 31 4 Sport Not bad, they have everything. 3 55 1 Bar

    0熱度

    2回答

    我試過MySQL插入查詢不工作並顯示錯誤「Database_Exception [1241]:操作數應該包含1列S)」。 ====> INSERT QUERY INSERT INTO `notifications` (`message`, `selected_numbers`, `creation_date`, `update_date`, `message_date`) VALUES

    1熱度

    1回答

    我在保存數據時也嘗試保存值id。我可以用自動遞增選項來做到這一點,但有些原因,我不想將它用於數據庫。 即使我可以保存第一條記錄,但在此之後它會重複以前的ID。請幫我解決這個問題。非常感謝 控制器 public function ajax_add() { $this->_validate(); $data = array( 'VillageName'=> $this-

    -1熱度

    1回答

    我想推廣一批學生從第一學期到第二學期。 ---------------控制器-------------- ------ public function display_promote_student() { if (isset($_SESSION['logged_in']) && $_SESSION['logged_in'] === true && $_SESSION