我从Postgres得到了博客文章列表
select id, post_priority, publish_start
from posts
where email = 'someuser@gmail.com'
ORDER BY publish_start DESC
Run Code Online (Sandbox Code Playgroud)
如果有许多文章发表同一日期,则该列表有误。
当我从Postgres 10.2(服务器Ubuntu)中检索到时
id | title | post_priority | publish_start
------+-------+----------------------+----------------
1001 | A... | 1 | 2019-09-05
1002 | B... | 2 | 2019-09-05
Run Code Online (Sandbox Code Playgroud)
从开发机器中检索出来的情况与众不同-Postgres 11(MacOS)
id | title | post_priority | publish_start
------+-------+----------------------+----------------
1002 | B... | 2 | 2019-09-05
1001 | A... | 1 | 2019-09-05
Run Code Online (Sandbox Code Playgroud)
我知道我只需要在查询中再添加一列即可。但是我仍然想知道,当所有文章的publish_start日期都相同时,是什么决定了默认排序?如何更改/配置该默认列?
我有一个包含2列"Key"和"Value"的工作表.通过VBA代码,我想在Key列上搜索Input_key,如果不存在,我将添加新行[input-key] - [input-value].我该如何编码?
我正在导入现有资源 (AWS RDS),但terraform plan
命令显示了摘要:
#aws_db_instance.my_main_db must be replaced
+/- resource "aws_db_instance" "my_main_db" {
~ address = x
allocated_storage = x
+ apply_immediately = x
~ arn = x
~ username = x
+ password = x
(others arguments with alot of +/- and ~)
}
Run Code Online (Sandbox Code Playgroud)
my_main_db
在线且具有持久数据。我的问题如标题;现有数据库运行安全吗terrafrom apply
?我不想丢失所有客户数据。
我在Excel中有一个数据表,它与:
A B
-------------
1. aaa 11
2. bbb 22
3. ccc #N/A
4. ddd 44
Run Code Online (Sandbox Code Playgroud)
我写了一个VBA函数来按键获取值(col B)(在col A中)Ex: =getValue(A1)
在这个例子中,如果我输入=getValue(A3)
,则函数抛出#VALUE!错误.我正在调试并在VLOOKUP函数中看到错误.这是我的代码:
Public Function getValue(ByVal key As Variant)
'get value of the cell at column B which has value 'key' at column A on same row
column2GetValue = 2
useClosestMatch = False
'error here if colum2GetValue contain #N/A
found = Application.WorksheetFunction.VLookup( _
key, _
Worksheets(SHEET_CACHE_NAME).Range("A:B"), _
column2GetValue, _
useClosestMatch _
)
getValue = found
End Function
Run Code Online (Sandbox Code Playgroud)
如何VLOOKUP在VBA中获得#N/A值? 谢谢您帮忙!
我的网站允许用户写短篇小说.我希望他们可以自由地格式化和设置文本样式,所以我安装NicEdit来做到这一点.但NicEdit只有9种默认字体; 如何添加更多?
这是我的编辑.它使用默认代码和完整的面板控件.
excel ×2
excel-vba ×2
vba ×2
amazon-rds ×1
javascript ×1
nicedit ×1
postgresql ×1
sql ×1
sql-order-by ×1
terraform ×1
text-editor ×1
vlookup ×1