这是我的SQL查询.
CREATE FUNCTION UF_GetOrderProducts
(
@OrderId int
)
RETURNS VARCHAR(500)
AS
BEGIN
SELECT Identity(int,1,1) ID, ProductId INTO #Temp FROM OrderProduct WHERE OrderId = @OrderId
Declare @Id int,
@Count int,
@LoopCount int,
@ProductList VARCHAR(500),
@ProductListTemp VARCHAR(500)
SET @Count = (Select Count(*) From #Temp)
SET @LoopCount = 1
SET @ProductList = ''
WHILE @LoopCount <= @Count
BEGIN
SET @ProductListTemp =( SELECT Name FROM Product WHERE ProductId =(Select ProductId from #Temp Where ID = @LoopCount))
SET @ProductList +=@ProductListTemp + '<br/>'
Set @LoopCount=@LoopCount + …
Run Code Online (Sandbox Code Playgroud) 我知道如何在朋友的墙上张贴提要。例如:
$url = 'https://graph.facebook.com/' . $fbId . '/feed';
$attachment = array(
'access_token' => $accessToken,
'message' => $msg,
'name' => $name,
'link' => $link,
'description' => $desc,
'picture' => $logo,
);
// set the target url
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $attachment);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$go = curl_exec($ch);
curl_close ($ch);
$go = explode(":", $go);
$go = str_ireplace('"', '', $go[1]);
$go = str_ireplace('}', '', $go);
return $go; …
Run Code Online (Sandbox Code Playgroud) 我在我的应用程序中使用输入类型搜索。我想cursor:pointer
在用户鼠标悬停在搜索框中的 x 图标上时显示,我试图为此找出 css,但没有找到与此相关的任何内容。
<input type="search">
Run Code Online (Sandbox Code Playgroud)