我有一个数据库触发器,而不是运行存储过程.
每次将新数据插入表时,此触发器都会运行.
这是存储过程查询:
编辑:新查询
declare @transaction_type int
set @transaction_type = (select TransTyp from inserted)
declare @transaction_ctr bigint
set @transaction_ctr = (select TransCtr from inserted)
declare @transaction_no nvarchar(15)
set @transaction_no = (select TransNum from inserted)
declare @transaction_date datetime
set @transaction_date = (select TransDt from inserted)
declare @customer_code nvarchar(10)
set @customer_code = (select CustCode from inserted)
declare @contact nvarchar(15)
set @contact = (select CellNum from inserted)
declare @transaction_info nvarchar(130)
set @transaction_info = (select TransInfo from inserted)
declare @date_received datetime
set @date_received = …Run Code Online (Sandbox Code Playgroud)我刚开始学习 Vue,因为我想从 PHP 转向 Javascript。
我有一个我无法解决的问题,我希望你能帮助我。
我有一份任务清单。如果我完成了任务,我想更新状态。如果我点击设置为完成的链接,任务将从未完成的任务移动到已完成的任务列表。
您可以在屏幕截图中看到,购买牛奶在已完成的任务中。我想要做的是在“所有任务”列表上的“购买牛奶”旁边添加“已完成”文本或复选图标。
这是我的代码:
< script >
var app = new Vue({
el: '#root',
data: {
message: 'Hello world!',
tasks: [{
description: 'Go to the store',
completed: false
},
{
description: 'Buy milk',
completed: false
},
{
description: 'Feed the dog',
completed: false
},
{
description: 'Cook something',
completed: false
}
]
},
methods: {
setToCompleted() {
this.completed = true;
},
},
computed: {
incompleteTasks() { …Run Code Online (Sandbox Code Playgroud)我目前正在学习OOP概念.我使用过CodeIgniter,我知道它有OOP概念,但我不明白它是如何工作的.我只是使用文档中的方法.
我现在在继承部分.
这是我的代码:
<?php
class Artist {
public $name;
public $genre;
public $test = 'This is a test string';
public function __construct(string $name, string $genre) {
$this->name = $name;
$this->genre = $genre;
}
}
class Song extends Artist {
public $title;
public $album;
public function __construct(string $title, string $album) {
$this->title = $title;
$this->album = $album;
}
public function getSongArtist() {
return $this->name;
}
}
$artist = new Artist('Joji Miller', 'Lo-Fi');
$song = new Song('Demons', 'In Tounges');
echo $song->getSongArtist(); // …Run Code Online (Sandbox Code Playgroud) 我正在创建一个页面访问者模块。目标是了解访问最多的用户,以及访问最多的模块。
我想获取当前页面的页面路由。
这是我想要做的:
'merchandiser/report/inventory'。(在routes.php,它是$route['merchandiser/report/inventory'])。这与我想要的路线相同。
我试过了:
<?php echo current_url(); ?>
Run Code Online (Sandbox Code Playgroud)
But it returns something like this.
192.168.3.3/portal/merchandiser/report/inventory
Run Code Online (Sandbox Code Playgroud)
192.168.3.3/portal/ is my base url`
Now my question is:
How can I remove 192.168.3.3/portal/ and just get merchandiser/report/inventory
Hope you can guide me or lead me where to find it.
Thank You.