Tag:delete
-
Time:2021-2-14
This paper describes the common operations of TP5 framework model with examples. The details are as follows: Use model to query data, add data, modify data and delete data Aggregation operation Getter, modifier Automatically add time stamp (creation time, modification time) Soft delete 1. Using model to query data $res = user:: get (1); // […]
-
Time:2021-2-12
1. After logging in to MySQL, first check whether the event function is enabled in MySQL Command: Show variables like% SC%; Discovery event_ The scheduler is off; 2. Open event_ scheuler: Temporarily open (the MySQL service fails after restart) SET GLOBAL event_ scheduler = ON; SET GLOBAL event_ Scheduler = 1; – 0 means close […]
-
Time:2021-2-11
preface In Python, if you want to delete the specified row and column in the tendon, you thought you could have a function or assign a line to [] directly. It turns out that it’s not so simple. So you use a curve to save the country. I hope you can point out a more […]
-
Time:2021-1-30
Paste the code directly:First, index_ test.jsp The code of the page is as follows: Copy codeThe code is as follows: <%@ page language=”java” pageEncoding=”utf-8″%> <%@ page contentType=”text/html;charset=utf-8″%> <% request.setCharacterEncoding(“UTF-8”); response.setCharacterEncoding(“UTF-8”); response.setContentType(“text/html;charset=utf-8”); %> <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml”> <head> < title > personnel operation<META http-equiv=Content-Type content=”text/html; charset=utf-8″> <style> […]
-
Time:2021-1-28
Copy codeThe code is as follows: @echo off :: delete duplicate rows, but cannot leave empty rows: the text that does not conform to the variable naming rules and the number of variables exceeds the limit cannot be handled correctly:: (echo) file contents after clearing duplicate lines: & echo.) > str_ .txtfor /f “delims=” %%i […]
-
Time:2021-1-23
After installing 2345 mobile assistant by mistake, although it is unloaded, there are still annoying my mobile icon. This experience is used to help delete it 1. Presswin+rFound“function” 2. Input“regedit”Open registry 3. Open the registry and navigate to:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace 4. Here are some items, some of which come with the system, as follows: Music {1cf1260c-4dd0-4ebb-811f-33c572699fde} Download […]
-
Time:2021-1-22
This paper describes the yii2.0 framework database operation with an example. The details are as follows: add to $id = \Yii::$app->db ->createCommand() ->Insert (‘table name ‘, [‘car_ num’ => $car_ num, ‘lg_ shop_ id’ => $shop_ id]) ->execute(); Batchinsert(): add multiple rows at a time // table name, column names, column values Yii::$app->db->createCommand()->batchInsert(‘user’, [‘name’, ‘age’], […]
-
Time:2021-1-19
In this paper, an example is given to illustrate the multi model operation of yii2.0 framework. The details are as follows: controller: <?php namespace app\controllers; use Yii; use yii\web\Controller; use yii\base\Model; use app\models\shopUsers; use app\models\shopLeagueInfo; use yii\web\NotAcceptableHttpException; class UserController extends Controller { public $layout = ‘shopUser’; public function actionSave($id) { $user = shopUsers::find()->where([‘id’ => $id])->one(); […]
-
Time:2021-1-16
(1) The process of delete statement is to delete a row from the table each time, and at the same time, save the deletion operation of the row as a transaction record in the log for rollback operation. Truncatetable can delete all the data from the table at one time. It does not record the […]
-
Time:2021-1-8
DROP: DROP TABLE test; Delete the table test and free up the space to delete the test completely. TRUNCATE: TRUNCATE test; Delete the contents of the table test and free up space, but do not delete the definition of the table. The structure of the table is still in use. DELETE: 1. Delete specified data […]
-
Time:2020-11-23
This paper describes the common methods of adding, deleting, modifying and querying HTML DOM by JavaScript. For your reference, the details are as follows: First of all, JS can modify all elements and attributes in HTML. It can also change CSS style, and can listen to all events and respond. This note mainly records how […]
-
Time:2020-11-10
This paper describes the PHP variable and string add, delete, modify and query operations. For your reference, the details are as follows: Use of variables <?php //Tell the browser what type of document to parse with what encoding method, to prevent Chinese garbled header(“Content-type: text/html; charset=utf-8”); //Examples of integers //Declaration integers $var=123; //Output one or […]