jquery sql_选择用于SQL,HTML和jQuery

jquery sql

jquery sql

Select is a very special term used in different programming languages, frameworks or database statements. In this tutorial we will list and explain different usages of the Select statements in SQL, HTML and jQuery.

Select是一个非常特殊的术语,用于不同的编程语言,框架或数据库语句。 在本教程中,我们将列出并解释SQL,HTML和jQuery中Select语句的不同用法。

SQL选择语句 (SQL Select Statement)

The most popular Select keyword is the SQL Select statement. SQL Select statement is used to query and retrieve data from and SQL database server. With the select statement the table the data is stored, the columns to be returned and some conditions about the retrieved data is provided to. A basic SQL select statement is like below.

最受欢迎的Select关键字是SQL Select语句。 SQL Select语句用于从SQL数据库服务器查询和检索数据。 使用select语句将数据存储在表中,并提供要返回的列以及有关所检索数据的一些条件。 基本SQL选择语句如下所示。

Select * From Users;

Select Name, Surname From Users;

Select Name, Surname, Age From Users Where Age>20;

HTML <select>标记 (HTML <select> Tag)

HTML also provides the <select> tag which is used to provides multiple option select menu where one of the options can be selected. This is very similar to the drop-down box.

HTML还提供了<select>标记,该标记用于提供多个选项选择菜单,可以在其中选择选项之一。 这与下拉框非常相似。

<html>
<head>
<title>HTML Select Tag</title>
</head>
<body>

<h1>HTML Select Tag</h1>

<!-- The second value will be selected initially -->
<select name="choice">
<option value="first">Poftut.com</option>
<option value="second" selected>Kaleinfo.com</option>
<option value="third">SiberHavadis.com</option>
</select>

</body>
</html>
HTML <select> Tag
HTML <select>标记

jQuery Select()函数(jQuery Select() Function)

jQuery is a very popular JavaScript framework that is mainly designed for client-side actions. jQuery also provides a function named select() which is used to bind an event handler for the given element or elements. The JavaScript code which will be executed when given element or elements selected.

jQuery是一个非常流行JavaScript框架,主要用于客户端操作。 jQuery还提供了一个名为select()的函数,该函数用于为给定元素绑定事件处理程序。 当选择给定的一个或多个元素时将执行JavaScript代码。

$( “#target” ).select(function() {
$(“ #target”).select(function(){
   alert( “Handler for .select() called.” );
alert(“调用.select()的处理程序。”);
});
});
LEARN MORE  How To Create a Database and Table In MySQL and MariaDB?
了解更多如何在MySQL和MariaDB中创建数据库和表?

翻译自: https://www.poftut.com/select-for-sql-html-and-jquery/

jquery sql

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值